网络请求报错:The resource could not be loaded because the App Transport Security policy requires the use o

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了网络请求报错:The resource could not be loaded because the App Transport Security policy requires the use o相关的知识,希望对你有一定的参考价值。

ios9引入了新特性App Transport Security (ATS)。详情:App Transport Security (ATS)

 

如果你想设置不阻止任何网络,只需要在info.plist文件中加入以下内容即可 
技术分享
如果你想设置只允许特定host的网络请求,在info.plist文件中加入以下内容 
技术分享
这样,你在发往baike.baidu.com这个host的请求就都不会被阻止了,你可以注册多个域名。

以上是关于网络请求报错:The resource could not be loaded because the App Transport Security policy requires the use o的主要内容,如果未能解决你的问题,请参考以下文章

The resource could not be loaded because the App Transport

解决K8s报错:Error: error installing: the server could not find the requested resource

redis报错Could not get a resource from the pool 仅登录用户可见

报错"Could not get a resource from the pool; nested exception is io.lettuce.core

Redis链接中JedisPool报错Could not get a resource from the pool(无法从连接池中获取资源)

Redis链接中JedisPool报错Could not get a resource from the pool(无法从连接池中获取资源)