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>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
复制代码
配置完就是这样的
本文介绍了如何在Xcode 7中配置App Transport Security(ATS),以允许加载不安全的HTTP资源。通过在Info.plist文件中加入特定配置,可以解决因ATS阻止不安全HTTP请求而引发的问题。
887

被折叠的 条评论
为什么被折叠?



