iOS App Transport Security

网络请求提示: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>
  <!--Include to allow all connections (DANGER)-->
  <key>NSAllowsArbitraryLoads</key>
      <true/>
</dict>



posted on 2016-09-01 11:04  夜夜清雨  阅读(121)  评论(0编辑  收藏  举报

导航