iOS9 beta 请求出现App Transport Security has blocked a cleartext HTTP (http://)
2016-05-19 14:35
344 查看
错误描述:
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app‘s Info.plist file.
在iOS9 beta中,苹果将原http协议改成了https协议,使用 TLS1.2 SSL加密请求数据。
解决方法:
在info.plist 加入key
参考资料:
https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-DontLinkElementID_13
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app‘s Info.plist file.
在iOS9 beta中,苹果将原http协议改成了https协议,使用 TLS1.2 SSL加密请求数据。
解决方法:
在info.plist 加入key
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
参考资料:
https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-DontLinkElementID_13
相关文章推荐
- HTTP中的重定向和请求转发的区别
- perl统计http日志ip
- Git常用命令大全
- Android Https请求详解
- 根据HTTP和HTML中的字符集下载网页
- git使用方法
- TCP/IP之大明王朝邮差
- 二,使用框架完成http_python服务器
- Windows网络编程相关概念
- fedora配置网络
- 电脑无法自动获取ip
- Anroid端通过HttpClient连接Web端
- 太空飞行计划问题[网络流24题之2]
- HTTP 2.0 与 tomcat
- Android设置代理访问网络Proxy
- 【LINUX网络编程】Makefile文件
- Java网络爬虫基础
- [javaEE] http协议详细
- 使用WinINet和WinHTTP实现Http访问
- Android 网络框架