Thursday, 24 September 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




Recently updated my Xcode with IOS 9 simulators per-installed. When i ran the it gave me error for not log in the user, i cross checked the log and find that  below line

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

To solve this i made a quick search on Google and found out the solution so sharing it here on blog as it will help others

Solution:

You have to set the NSAllowsArbitraryLoads key to YES under NSAppTransportSecurity dictionary in your .plist file. Hope this helps!

You have to set the NSAllowsArbitraryLoads key to YES under NSAppTransportSecurity dictionary in your .plist file. Hope this helps!

 Taken from: http://stackoverflow.com/questions/31254725/transport-security-has-blocked-a-cleartext-http

No comments:
Write comments