Hi Stackoverflow,
I keep getting this error after moving my quick application to Swift2.0:
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app Info.plist file. The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
And I looked at the following link https://forums.developer.apple.com/thread/5835
and added the following code to my info.plist
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict/> </dict>
And this still does not work, who has an alternative solution?
source share