Sunday, August 23, 2015

Tip - Resolving "Application Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure"

In iOS 9 and watchOS 2.0, if you try to connect to a Web server insecurely using http://, you will get an error that says "Application 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.".

This is because the default implementation of Transport Security is set to use https://, which is secure and safe. To override this behaviour, you simply need to add the following keys to your Info.plist file:

No comments: