Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on iOS for using HTTP and not HTTPS. DioError [DioErrorType.DEFAULT]: Bad state: Insecure HTTP is not allowed by platform #25

Open
ArpanBhavsar opened this issue Aug 30, 2021 · 0 comments

Comments

@ArpanBhavsar
Copy link

Below error shows when I try to connect to iOS Client or Server.
DioError [DioErrorType.DEFAULT]: Bad state: Insecure HTTP is not allowed by platform
I tried to add below portion of code to Info.plist, it worked.
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>

But I have a question that can't it run with https. And if no then, Can anyone please tell why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant