The resource could not be loaded because the App Transport Security policy requires the use of a sec
来源:互联网 发布:java生成日志文件 编辑:程序博客网 时间:2024/04/27 13:37
Xcode 7 报错:
Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection."
这是因为Xcode 7以后,苹果要求所有的网络请求都是安全的(HTTPS).所有如果本身的服务器不支持HTTPS请求的话就要修改Xcode的默认配置.
在info.plist文件中,右击空白位置 Add Row .然后添加类型为Dictionary的NSAppTransportSecurity,在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
- socket编程中select的使用
- 三、Windows 中OpenGL库函数及数据类型
- SQLite的WAL机制
- c# 文件路径
- Noip 备战篇(二)
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- 二叉树类型笔试面试题大总结(含代码)
- 进程间通信--管道
- 0918Android基础自定义属性
- 面试题精解之一: 二叉树
- 求二叉树的深度
- linux内核自锁旋spinlock常用宏解释
- Connections between cities (hdu 2874 LCA)
- Cocos2d-js cc.director介绍