ios网络请求报错:the App Transport Security policy requires the use of a secure connection
来源:互联网 发布:c 二维数组输出 编辑:程序博客网 时间:2024/05/17 08:13
iOS9引入了新特性:App Transport Security (ATS),新特性要求App内访问的网络必须使用HTTPS协议。
但是现在公司的项目使用的是HTTP协议,使用私有加密方式保证数据安全。现在也不能马上改成HTTPS协议传输。
最终找到以下解决办法:
在Info.plist中添加NSAppTransportSecurity类型的Dictionary。在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型的Boolean,值设为YES。
0 0
- ios网络请求报错:the App Transport Security policy requires the use of a secure connection
- iOS 网络访问安全问题解决方法App Transport Security policy requires the use of a secure connection
- 问题人生[20160112] the App Transport Security policy requires the use of a secure connection
- 修改App Transport Security policy requires the use of a secure connection问题
- ios网络请求报错:The resource could not be loaded because the App Transport Security policy requires the us
- iOS xcode 网络请求报错:The resource could not be loaded because the App Transport Security policy requires
- Xcode7 网络请求报错:The resource could not be loaded because the App Transport Security policy requires th
- “The resource could not be loaded because the App Transport Security policy requires the use of a se
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- 【欧拉函数模板】
- oracle超级用户connection
- LeetCode Algorithms #226 <Invert Binary Tree>
- Android应用开发性能优化完全分析
- Spring + hibernate5 搭建web配置事务处理
- ios网络请求报错:the App Transport Security policy requires the use of a secure connection
- 面试笔试题知识点回顾
- AppleWatch真机调试问题:App Transport Security has blocked a cleartext HTTP(http://)resource load since...
- iOS9种关于App Transport Security详细说明
- 百度地图API学习总结
- 物理渲染-基于物理的光照模型
- 006.精度损失
- 算法之3--合并排序
- 详解Javascript 中的this指针