-
Notifications
You must be signed in to change notification settings - Fork 473
Internet Permissions
Charlie Hieger edited this page Nov 19, 2015
·
8 revisions
You can poke holes in ATS by adding a NSAppTransportSecurity
dictionary to Info.plist. Add an NSExceptionDomains
dictionary to whitelist specific domains. It may resemble:
-
NSAppTransportSecurity
-
NSExceptionDomains
- api.rottentomatoes.com
-
NSExceptionAllowsInsecureHTTPLoads
: YES
-
- api.rottentomatoes.com
-
You may also use NSAllowsArbitraryLoads
to completely disable ATS in your app:
Or in XML:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
This is strongly discouraged. Only use this during development.