解决iOS9新特性无法使用http的解决方法
2015-12-23 17:01
633 查看
在使用Xcode7,iOS9编译应用时会出现这样的问题,
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内访问的网络必须使用HTTPS协议。
如下图:
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内访问的网络必须使用HTTPS协议。
在Info.plist中添加NSAppTransportSecurity类型Dictionary。 在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES
如下图:
相关文章推荐
- bzoj1305[CQOI2009]dance跳舞
- Httpclient 和jsoup结和提取网页内容(某客学院视频链接)
- Convolutional Neural Networks Posts
- Understanding Convolutions
- http-equiv详解
- 强大的网络通信框架(不实现缓存)--第三方开源--AsyncHttpClient
- 基于UDP的Socket网络编程实现用户登录
- 黑马程序员——Java之网络编程
- Https网站搭建——通过https://localhost:8443访问tomcat首页
- 关于kali linux 安装后网络连不上问题
- RTMP/RTP/RTSP/RTCP的区别
- iOS开发网络篇—数据安全
- iOS中TCP和UDP的区别
- include layout scllorview 常用正则 base 64 网络请求框架
- NSURLConnection 异步发送 HTTP 请求的代码
- Http协议详解
- 解决错误This message can only be sent over HTTPS.
- 10023---Java网络编程
- HTTP 状态码
- http多请求流程等了解(待整理)