应用传输安全问题 [英] App Transport Security issue

查看:37
本文介绍了应用传输安全问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用最新的 iOS SDK (9.2) 运行 xcode 7.2.Apple 文档

即使我通过删除 Exception Domains 键 & 禁用了 ATS将 NSAllowsArbitraryLoads 设置为 YES.请求仍然被阻止!?

有什么想法吗?

解决方案

只需在 .plist 中添加这些行

NSAppTransportSecurity<字典><key>NSAllowsArbitraryLoads</key><true/></dict>

I'm running xcode 7.2 with latest iOS SDK (9.2). The Apple document here regarding to the options which will enable http request to be allowed by ATS on specific domain no longer work.

Please see attached images:

Even though I disable ATS by delete Exception Domains key & set NSAllowsArbitraryLoads to YES. The request still be blocked!?

Any idea?

解决方案

just add these lines in your .plist

<key>NSAppTransportSecurity</key>  
     <dict>  
          <key>NSAllowsArbitraryLoads</key><true/>
     </dict>  

这篇关于应用传输安全问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆