App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure
2016-03-02 22:46
423 查看
错误:URL发送请求和网页,出现
“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里,要求采用 HTTPS 协议。
解决方案:
在Info.plist中添加 NSAppTransportSecurity 类型 Dictionary ;
在 NSAppTransportSecurity 下添加 NSAllowsArbitraryLoads 类型Boolean ,值设为 YES;
“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里,要求采用 HTTPS 协议。
解决方案:
在Info.plist中添加 NSAppTransportSecurity 类型 Dictionary ;
在 NSAppTransportSecurity 下添加 NSAllowsArbitraryLoads 类型Boolean ,值设为 YES;
相关文章推荐
- 转 c#代码访问https服务器以及https的webservice
- http://lib.csdn.net
- 信息安全之网络安全初体验(保密向)(一)
- Eclipse: 在JSP 页面中 找不到类 javax.servlet.http.HttpServletResponse
- 设计TCP服务器的规则
- Maven设置http代理
- HTTP状态码详解
- HTTP协议详解
- Android网络连接验证
- 405, HTTP Status 405 - JSPs only permit GET POST or HEAD.。
- TCP和UDP
- linux编程网络字节htons以及地址结构sockaddr理解
- TCP三次握手及释放连接详解
- delphi 利用HTTP的POST方法做个在线翻译的小工具 good
- TCP打洞和UDP打洞的区别
- ISO七层参考模型, TCP/IP
- Nginx为什么比Apache Httpd高效
- 使用maven打包项目遇到错误: http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
- Linux中的系统和网络资源监测工具:Monitorix
- TCP/IP 要点备忘