网络中的 Flutter http 不安全请求 chrome
Flutter http insecure request in web chrome
在这个问题中: 我们可以找到 ios 和 Android 的解决方案,但是我们如何在 Chrome 网络平台上解决它?我尝试在 Flutter 2.0.3
中做到这一点
您可以尝试使用https进行安全调用:
Response response = await get('https://you_api_url');
我解决了。如果您需要 http 不安全请求,您必须允许这样做。有如何允许它的信息:https://flutter.dev/docs/release/breaking-changes/network-policy-ios-android
在这个问题中: 我们可以找到 ios 和 Android 的解决方案,但是我们如何在 Chrome 网络平台上解决它?我尝试在 Flutter 2.0.3
中做到这一点您可以尝试使用https进行安全调用:
Response response = await get('https://you_api_url');
我解决了。如果您需要 http 不安全请求,您必须允许这样做。有如何允许它的信息:https://flutter.dev/docs/release/breaking-changes/network-policy-ios-android