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.

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: