Skip to content

Instantly share code, notes, and snippets.

@hammadzz
Last active January 13, 2017 03:55
Show Gist options
  • Save hammadzz/b62a7861b5ae5d325325f2551c1acb88 to your computer and use it in GitHub Desktop.
Save hammadzz/b62a7861b5ae5d325325f2551c1acb88 to your computer and use it in GitHub Desktop.
NS App Transport Security Plist Exceptions
<!-- 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