App Transport Security has blocked a cleartext HTTP (http://) resource load
2015-11-10 14:54
656 查看
今天开发中,遇到下问题,Xcode提示如下:
“App TransportSecurity has blocked a cleartext HTTP (http://) resource load since it isinsecure. Temporary exceptions can be configured via your app's Info.plistfile.”
简而言之:ATS禁止了HTTP的明文传输,因为它不安全。可以修改Info.plist文件,让它临时允许明文传输。
解决办法:
在Info.plist文件中添加"App
Transport SecuritySettings", Type为"Dictionary",再添加"Allow
Arbitray Loads", Type 为"Boolean",“Value”为“YES”即可。
如图所示:
成功解决。
“App TransportSecurity has blocked a cleartext HTTP (http://) resource load since it isinsecure. Temporary exceptions can be configured via your app's Info.plistfile.”
简而言之:ATS禁止了HTTP的明文传输,因为它不安全。可以修改Info.plist文件,让它临时允许明文传输。
解决办法:
在Info.plist文件中添加"App
Transport SecuritySettings", Type为"Dictionary",再添加"Allow
Arbitray Loads", Type 为"Boolean",“Value”为“YES”即可。
如图所示:
成功解决。
相关文章推荐
- iOS 开发网络数据处理 ------ AFNetWorking
- HttpWebResponse 传输IDictionary<string, string>[] parameter数组
- HTTP 状态码整理
- android GridView 通过json显示网络图片和文字
- (转)TDI FILTER 网络过滤驱动完全解析
- 搭建入门网络验证码(注册码)教程
- 如何在Ant中设置HTTP代理
- Android网络数据请求之HttpClient
- 在Spring Boot中使用Https
- Zigbee网关作为tcpclient示意图
- Meta http-equiv属性详解
- iOS网络之多线程
- 机器学习笔记——神经网络的实现
- centos7中控制节点配置网络
- centos7中控制节点配置网络
- xutil中httputils解析
- 深入浅出LSTM神经网络 ------从卷积 递归网络 到长短时间记忆模型
- 操作系统与网络实现 之九
- 将社交网络集成到 BPM,第 1 部分: 收集 Twitter 数据
- iOS图片上传服务器(ASIHTTPRequest,SpringMVC)