解决办法:Transport security has blocked a cleartext HTTP (http://) resource load since it is insecure. T

从iOS9起,新特性要求App访问网络请求,要采用 HTTPS 协议。

但是还是可以通过修改 plist 文件暂时可以允许 http 访问

解决办法:Transport security has blocked a cleartext HTTP (http://) resource load since it is insecure. T_第1张图片

添加如下代码:

NSAppTransportSecurity

NSAllowsArbitraryLoads


然后保存就可以了。

解决办法:Transport security has blocked a cleartext HTTP (http://) resource load since it is insecure. T_第2张图片

你可能感兴趣的:(iOS)