iOS 9 Error: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection

With the release of iOS 9 this week, there’s some changes to the development of the application.

If you are writing an app now and it calls certain external api or webservices, you will hit the following error.

The resources could not be loaded because the App Transport Security policy requires the use of a secure connection.

There are 2 solutions to this, first make sure that the connection you are trying to make support https. Change that in your codes and build, if error persist.

The second solution is to add a new value to the Info.plist in your solution file.

Add a Key called NSAppTransportSecurity as a Dictionary

Add a sub-key called NSAllowsArbitraryLoads as Boolean
and set its value to YES.

Leave a Reply

Your email address will not be published. Required fields are marked *