Skip to content

Instantly share code, notes, and snippets.

@EddyVerbruggen
Last active September 11, 2015 19:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EddyVerbruggen/3f37ec04e6111a7c6733 to your computer and use it in GitHub Desktop.
Save EddyVerbruggen/3f37ec04e6111a7c6733 to your computer and use it in GitHub Desktop.
Whitelist your server for iOS9 non-HTTPS communication
<!--
When building with XCode 7 (iOS9 SDK), Apple restricts communication to SSL servers only.
See https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/
You can override this if you need to.
If you know which servers your app talks to, look for 'NSExceptionDomains' on the page above.
But if you need to whitelist everything (not recommended) add this to your app's .plist:
-->
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<!--
CORDOVA USERS:
You will be able to use the <access> tag in config.xml to manipulate this, see https://issues.apache.org/jira/browse/CB-9569
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment