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>



原文地址:https://www.cnblogs.com/sun-wsh/p/5828958.html