Endpoints require SSL
suggest changeApp Transport Security, introduced in iOS 9, blocks cleartext HTTP and TLS connections that do not meet its requirements. The app sees a failed load, and the console logs an ATS message.
To configure exceptions: Place the following in your Info.plist file:
- Allow particular domain (testdomain.com) only:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>testdomain.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
The key that permits such behavior is NSExceptionAllowsInsecureHTTPLoads. The app then allows HTTP for testdomain.com only and blocks other HTTP connections.
The key NSIncludesSubdomains specifies that any and all subdomains of the mentioned domain (testdomain.com) should also be allowed.
- Allow any domain:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
The app then allows HTTP to any domain. As of January 1st 2017, using this flag will cause thorough App Store review and the app developers will have to explain why they need to use this exception in the first place. Possible explanations include:
- An application that loads encrypted media content that contains no personalized information.
- Connections to devices that cannot be upgraded to use secure connections.
- Connection to a server that is managed by another entity and does not support secure connections.