The resource could not be loaded because the App Transport Security policy requires the use of a sec
来源:互联网 发布:淘宝买蔬菜种子到哪家 编辑:程序博客网 时间:2024/05/08 11:39
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
关于这个错误,查证后发现iOS9引入了新特性App Transport Security (ATS)
。详情:App Transport Security (ATS)新特性要求App内访问的网络必须使用HTTPS
协议。
但是现在公司的项目使用的是HTTP
协议,使用私有加密方式保证数据安全。现在也不能马上改成HTTPS
协议传输。
最终找到以下解决办法:
- 在Info.plist中添加
NSAppTransportSecurity
类型Dictionary
。 - 在
NSAppTransportSecurity
下添加NSAllowsArbitraryLoads
类型Boolean
,值设为YES
0 0
- 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
- “The resource could not be loaded because the App Transport Security policy requires the use of a se
- iOS9 出现 the resource could not be loaded because the app transport security policy requires the use
- -"The resource could not be loaded because the App Transport Security policy requires........
- AFNetworking 提示"The resource could not be loaded because the App Transport Security policy requires
- ios网络请求报错:The resource could not be loaded because the App Transport Security policy requires the us
- Xcode7 网络请求报错:The resource could not be loaded because the App Transport Security policy requires th
- xcode 7.0 错误提示 The resource could not be loaded because the App Transport Security policy requires
- iOS xcode 网络请求报错:The resource could not be loaded because the App Transport Security policy requires
- CUDA学习笔记--上下文
- Android进程优先级详解
- 业务知识
- Android线程和线程池(四)--Android线程池
- 控制反转的通俗解释
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- 资深程序员告诉你:如何用五年时间攒够100万?
- Android 快速开发系列 打造万能的ListView GridView 适配器
- IDA附加调试Android进程无法看到进程列表或只有部分进程
- ndk下载
- 更改Eclipse下Tomcat的部署目录
- ios 单例
- ORACLE 表空间文件大小问题
- 高性能网站架构设计之缓存篇(6)- Redis 集群(中)