Skip to content

Instantly share code, notes, and snippets.

@urouro
Created January 7, 2016 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save urouro/d9b1a6610625a73a382a to your computer and use it in GitHub Desktop.
Save urouro/d9b1a6610625a73a382a to your computer and use it in GitHub Desktop.
App Transport Security Setting
<!-- Disables ATS for any domains -->
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<!-- Allows insecure HTTP loads for example.com -->
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>example.com</key>
<dict>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment