发送网络请求错误
Application Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure
解决方法
根据错误提示,需要配置info.plist文件:
或者以sourceCode形式打开info.plist文件,在其中加入如下代码:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowArbitrary</key>
<true/>
</dict>
网友评论