pp 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. 原因及解决方法
1.原因是xcode的安全协议不支持http只支持https的安全模式
2.解决方法 在工程文件的info.plist右击——>open as ——> source code 在<dict>下面添加
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
然后就可以打开一半url了。
App Transport Security导致无法加载不安全的HTTP资源。为解决此问题,可以通过Info.plist文件配置临时例外,允许任意加载。具体设置如下:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
779

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



