Skip to content

Instantly share code, notes, and snippets.

@nickrouty
Created September 29, 2015 16:46
Show Gist options
  • Save nickrouty/4b19512e9806b583d7d8 to your computer and use it in GitHub Desktop.
Save nickrouty/4b19512e9806b583d7d8 to your computer and use it in GitHub Desktop.
Updating your Apache Cordova app to work with iOS 9 comes with some confusion. We found that we weren't able to make remote requests to API end points that we needed to. To ensure this would work we needed to add the following code to the platforms/ios/[AppName]/appname-Info.plist file.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>ReplaceWithYourDomanName.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSTemporaryExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.0</string>
</dict>
</dict>
</dict>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment