首页 > 代码库 > App Transport Security has blocked a cleartext HTTP (http://) resource load

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