Skip to content

Instantly share code, notes, and snippets.

@bbuyukkahraman
Last active December 4, 2015 14:58
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 bbuyukkahraman/1e0402575e756c804485 to your computer and use it in GitHub Desktop.
Save bbuyukkahraman/1e0402575e756c804485 to your computer and use it in GitHub Desktop.
# Add following lines to info.plist file
# Change domain name with your preferred domain.
<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 add following lines for Unsecure way for Diagnostics
<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