https://developer.apple.com/videos/wwdc/2015/?id=711 @5:55
I can't seem to be able to add this to my info.plist. There is no value it. I'm running XCode Version 7.0 beta (7A121l), and testing on iOS9.
Because I can't specifically declare what URL's I want as seen in the video, I keep getting "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" errors.
However, I don't seem to be able to configure it. Any ideas?
That wasn't working for me, but this did the trick:
Update Answer (after wwdc 2016):
App Transport Security, or ATS, is a feature that Apple introduced in iOS 9. When ATS is enabled, it forces an app to connect to web services over an HTTPS connection rather than non secure HTTP.
However, developers can still switch ATS off and allow their apps to send data over an HTTP connection as mentioned in above answers. At the end of 2016, Apple will make ATS mandatory for all developers who hope to submit their apps to the App Store. link
In mac shell command line , use the following command:
The command will add all the necessary values into your plist file.
You have to add just the NSAllowsArbitraryLoads key to YES in NSAppTransportSecurity dictionary in your info.plist file.
For example,
This will allow to connect to .com .net .org
XCODE 8, Swift 3: You need to add a row: **
** in the info.plist inside information Property list.