Home
> Uncategorized > #iOS9 #Breaking #Change – HTTP connections blocked by default!
#iOS9 #Breaking #Change – HTTP connections blocked by default!
In the new iOS 9 Apple has decided that HTTP is too insecure for communications outside of your app… If you try to make one, you get this error:
Failed to load resource: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
So, you can go and get a HTTPS security cert for your server – perhaps the best option – or you can add this to your info.plist
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
I discovered this when using http://www.remotelogcat.com on a Phonegap / Cordova iOS app.
Categories: Uncategorized
Comments (0)
Trackbacks (0)
Leave a comment
Trackback