Tuesday, October 13, 2015

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.[Solved]!!!

You will get this error when upgrade the source from Swift 1.2 to Swift 2.0 and using some website URL in your app.

We can easily solve this issue. You can try the below solution to solve this issue.

Issue:

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.

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

Solution:

Edit your info.plist file and add the new key called NSAppTransportSecurity with type Dictionary. Then create new key called NSAllowsArbitraryLoads with type Boolean and set that value to YES.
NSAllowsArbitraryLoads value is the Dictionary item of NSAppTransportSecurity.

Refer the below snapshot.


No comments:

Post a Comment