NSURLSession发送HTTP请求报错

来源:互联网 发布:sem优化方案 给领导看 编辑:程序博客网 时间:2024/05/29 10:06

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.


在项目的Plist文件中,找到App Transport Security Settings,其下有个Allow Arbitrary Loads设置为YES。

1 0