Xcode7 网络请求报错:The resource could not be loaded because the App Transport Security policy requir
2015-09-24 23:46
851 查看
升级
输出错误信息
[objc] view
plaincopy
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
Google后查证,iOS9引入了新特性
Transport Security (ATS)
新特性要求App内访问的网络必须使用
但是现在公司的项目使用的是
在Info.plist中添加
在
其他问题参考: http://blog.csdn.net/hongfengkt/article/details/48543091
Xcode 7.0发现网络访问失败。
输出错误信息
</pre><p></p><pre>
[objc] view
plaincopy
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
Google后查证,iOS9引入了新特性
App Transport Security (ATS)。详情:App
Transport Security (ATS)
新特性要求App内访问的网络必须使用
HTTPS协议。
但是现在公司的项目使用的是
HTTP协议,使用私有加密方式保证数据安全。现在也不能马上改成
HTTPS协议传输。
最终找到以下解决办法:
在Info.plist中添加NSAppTransportSecurity类型
Dictionary。
在
NSAppTransportSecurity下添加
NSAllowsArbitraryLoads类型
Boolean,值设为
YES
其他问题参考: http://blog.csdn.net/hongfengkt/article/details/48543091
相关文章推荐
- web:1、http原理基础详解
- tcpdump命令
- 《深入理解Linux网络技术内幕》阅读笔记(一)
- 黑马程序员---Java基础---网络编程
- hihoCoder 1227 The Cats' Feeding Spots && ACM-ICPC国际大学生程序设计竞赛北京赛区(2015)网络赛
- Http与后台任务(AsyncTask)
- iOS9.0网络问题,苹果将原http协议改成了https协议
- 网络编程easy错误点-手知道
- Linux进程间通信——使用命名管道 http://blog.csdn.net/ljianhui/article/details/10202699
- [转]漫谈数据中心CLOS网络架构
- HttpClient使用详解
- 图解HTTP协议 第5章 与HTTP协作的Web服务器学习笔记
- 图解HTTP协议 第4章 返回结果的HTTP状态码学习笔记
- 图解HTTP协议 第3章 HTTP报文内的HTTP信息学习笔记
- 图解HTTP协议 第2章 简单的HTTP协议学习笔记
- poj 1386 Play on Words(单向欧拉函数+并查集)
- TCP/IP的工作方式
- 图解HTTP 第一章 了解Web基网络基础 学习笔记
- CNN卷积神经网络总结
- Tecent:android端AysncHttpClient使用