Skip to content

Instantly share code, notes, and snippets.

@juliengdt
Created October 14, 2015 14:35
Show Gist options
  • Save juliengdt/2c6b8809353ece3d7bf1 to your computer and use it in GitHub Desktop.
Save juliengdt/2c6b8809353ece3d7bf1 to your computer and use it in GitHub Desktop.
Apple ATS Workarounds
<!--Allow unsecured connections in a whitelist-->
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>yourserver.com</key>
<dict>
<!--Include to allow subdomains-->
<key>NSIncludesSubdomains</key>
<true/>
<!--Include to allow HTTP requests-->
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<!--Include to specify minimum TLS version-->
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
</dict>
</dict>
</dict>
<!--OR-->
<!--Allow unsecured connections everywhere, yerk-->
<key>NSAppTransportSecurity</key>
<dict>
<!--Include to allow all connections (DANGER)-->
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment