当前位置 : 主页 > 手机开发 > ios >

IOS10.11 无法访问http的问题解决办法

来源:互联网 收集:自由互联 发布时间:2021-05-10
IOS10.11 无法访问http的问题解 Xcode Version 7.3.1 (7D1014) IOS9 之后更新了htpps的访问限制,网上很多文章说 往plist 文件中添加 NSAppTransportSecurity的字典 NSAppTransportSecurity 往上面字典中添加 NSa

IOS10.11 无法访问http的问题解

Xcode  Version 7.3.1 (7D1014)

IOS9 之后更新了htpps的访问限制,网上很多文章说 往plist 文件中添加 

NSAppTransportSecurity的字典

NSAppTransportSecurity

往上面字典中添加

NSallowsArbitaryLoads  Boolean   YES

NSAllowsArbitraryLoads

但是实际上操作添加了也没用。困惑了半天。

最后发现,现在的版本,按照以下操作是可以的。

添加NSAppTransportSecurity的字典
会自动变成  AppTransportSecurity
再添加 allow Arbitary Loads  Boolean   YES

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

网友评论