iOS9 HTTP 不能正常使用的解决办法
2015-11-05 09:54
288 查看
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
解决办法1
使用HTTPS
解决办法2:
在Info.plist中添加NSAppTransportSecurity类型Dictionary。
在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES
相关文章推荐
- 按钮添加网络请求的图片(多线程)(ios自学笔记)
- DefaultHttpClient使用
- 【网络流】最大流:求最小割值、求(边)不交路径数量、求二分匹配最大匹配数
- 显示网络上的图片
- 检查网络状态信息的API
- 2015 北京网络赛 C Protecting Homeless Cats hihoCoder 1229 树状数组
- 远程计算机需要网络级别身份验证,而您的计算机不支持该验证的解决方法
- 【读书笔记】iOS网络-三种错误
- 【读书笔记】iOS网络-三种错误
- HTTP头域字段详解
- volley网络框架
- 浅析TCP字节流与UDP数据报的区别
- 浅析TCP字节流与UDP数据报的区别
- HTTP Keep-Alive模式
- Xcode 7遇到 App Transport Security has blocked a cleartext HTTP 错误
- 网络编程
- ios网络请求 get——post 区别
- 单文件上传工具类封装解析
- java TCP 代码
- 呼叫中心系统,网络电话