iOS9 关于明文HTTP报错的修复方法

报错: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.

 

解决办法:

在info.plist 加入key

<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>

解决办法:修改info.plist文件

 

posted @ 2015-09-15 13:39  MokeyChan  阅读(345)  评论(0编辑  收藏  举报