Reputation: 469
I am attempting to send a http:// request however, ATS keeps blocking my request. I have turned on Allow Arbitrary Loads
in the Info.plist
and it still gives me the same error:
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
Upvotes: 0
Views: 65
Reputation: 2793
You can add exceptions for specific domains in your Info.plist
You can bypass this by adding this key to your info.plist of the project
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Upvotes: 1
Reputation: 5628
Your dictionary App Transport Security Settings
should be named NSAppTransportSecurity
. And there should be only one thing in there which is NSAllowsArbitraryLoads
boolean. Something like this.
Upvotes: 0