App Transport Security has blocked a cleartext HTTP (http://) resource load

Posted wangwei-Carry

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了App Transport Security has blocked a cleartext HTTP (http://) resource load相关的知识,希望对你有一定的参考价值。

“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 中的配置重新写了一遍,好了(真TMD神奇)

  配置:

 

如果是HTTPS 请求:

 

以上是关于App Transport Security has blocked a cleartext HTTP (http://) resource load的主要内容,如果未能解决你的问题,请参考以下文章

根据 Scheme 修改 App Transport Security

sh 用于在iOS 9中禁用App Transport Security的Bash脚本

我似乎没有找到 App Transport Security,所以我可以暂时禁用它

iOS App 不支持http协议 App Transport Security has blocked a cleartext HTTP (http://)

Xcode 7提示App Transport Security has blocked a cleartext HTTP (http://) resource load的解决办法

App Transport Security has blocked a cleartext HTTP (http://) resource load