In this question: Bad state: Insecure HTTP is not allowed by platform: we can find solution for ios and Android, but how we fix it in Chrome web platform? I try do it in Flutter 2.0.3
Asked
Active
Viewed 518 times
2

sosnus
- 968
- 10
- 28
-
check this: https://stackoverflow.com/questions/61320824/how-do-i-get-flutter-run-d-chrome-to-use-https – Divyesh Apr 12 '21 at 17:09
2 Answers
0
You can try to make secure call using https:
Response response = await get('https://you_api_url');

Divyesh
- 2,085
- 20
- 35
-
It is my own test server, i can't use httpS now. I search for the same way to solve it like here ( https://stackoverflow.com/questions/64197752/bad-state-insecure-http-is-not-allowed-by-platform?newreg=673318c29c8a4529a8ff0f1a20b29866 ), but for web project, not ios/android – sosnus Apr 12 '21 at 20:18
0
I solve it. If You need http insecure request, You must allow to do it. There is information how to allow it: https://flutter.dev/docs/release/breaking-changes/network-policy-ios-android

sosnus
- 968
- 10
- 28