Skip to content

Instantly share code, notes, and snippets.

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 kbshl/502e4ff2d87ebf44dc8144dd8a0dc0d3 to your computer and use it in GitHub Desktop.
Save kbshl/502e4ff2d87ebf44dc8144dd8a0dc0d3 to your computer and use it in GitHub Desktop.
Multiple exceptions for iOS 9 App Transport Security - From http://skypanther.com/2015/09/multiple-exceptions-for-ios-9-app-transport-security
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>myinsecuresite.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
<key>myotherinsecuresite.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
<key>127.0.0.1</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment