iOS知识---webView加载网址报错Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded beca

在iOS开发中,使用WebView加载HTTP网址时可能会遇到由于App Transport Security策略导致的加载错误。该错误表明系统默认要求使用HTTPS安全连接。解决此问题的方法是在Info.plist文件中配置例外规则,或者修改App Transport Security Settings设置,允许任意加载。
摘要由CSDN通过智能技术生成

xcode在使用webView加载网页的时候可能会遇到加载不出来的报错问题,

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. 
2015-11-20 16:12:16.662 AFNetworking_(3.0)[3091:1742917] failure Error Domain=NSURLErrorDomain Code=-1022 “The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.” UserInfo={NSUnderlyingError=0x7fedb8e02ef0 {Error Domain=kCFErrorDomainCFNetwork

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值