【iOS开发问题】App Transport Security has blocked a cleartext HTTP (http://) resource load

问题:

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.


原因 Xcode7后的iOS9 http协议修改为https协议。

解决方案:info.plist文件中加入

<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
运行成功。

你可能感兴趣的:(【iOS开发问题】App Transport Security has blocked a cleartext HTTP (http://) resource load)