iOS 错误 之 http请求

 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. 
 
解决:
在info.plist中添加
<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key><true/>
</dict>

 App Transport Security Settings   》 Allow Arbitrary Loads 》YES

posted on   大木哥  阅读(287)  评论(0编辑  收藏  举报

努力加载评论中...

导航

点击右上角即可分享
微信分享提示