cocos2d-js 使用http时 出现 Response failed, error buffer: The resource could not be loaded because the Ap
来源:互联网 发布:linux下lamp环境搭建 编辑:程序博客网 时间:2024/05/16 11:42
使用h5 版本时候向服务器发送数据用的是 ajax,但在打包App时 需要改成Http协议。
但在app中使用http时 出现:
Response failed, error buffer: 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协议
解决方法:
a.在Xcode里选中info.plist,点击右边的information Property List 后边的加号
b.写入App Transport Security Settings然后回车,先点击左侧展开箭头,再点右侧加号,Allow Arbitrary Loads 已经自动生成,直接回车。
c.需要把默认的值改成YES
资料查找:1、http://blog.csdn.net/sqc3375177/article/details/48626505
2、http://www.cnblogs.com/36bian/p/5237138.html
0 0
- cocos2d-js 使用http时 出现 Response failed, error buffer: The resource could not be loaded because the Ap
- Response failed, error buffer: The resource could not be loaded because the App Transport Security p
- 进行网络出现问题Error Domain=kCFErrorDomainCFNetwork Code=-1022 "The resource could not be loaded because th
- iOS9 出现 the resource could not be loaded because the app transport security policy requires the use
- Xcode7 The resource could not be loaded because the App Transport Security
- Xcode 7 联网问题 The resource could not be loaded because the App Transport Security
- Xcode7 beta 网络请求出错:The resource could not be loaded because the App Transport
- The resource could not be loaded because the App Transport Security policy requir
- 【iOS开发】The resource could not be loaded because the App Transport Security policy。。。
- -"The resource could not be loaded because the App Transport Security policy requires........
- [cnblogs镜像]AFNetworking 提示"The resource could not be loaded because the App Transport Security
- AFNetworking 提示"The resource could not be loaded because the App Transport Security policy requires
- http:101249 .jsp could not be loaded because the requested class was not found the classpath
- Xcode7 网络请求报错:The resource could not be loaded because
- “The resource could not be loaded because the App Transport Security policy requires the use of a se
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- 5、输入三角形的三个边长a,b,c,输出面积s,要求保留一位小数位,总位数7位。
- Android开发入门——推箱子游戏开发实战(二)
- 查看Linux内核信息的命令
- 基于Java的一个简单的文件上传下载功能
- AJAX问题之XMLHttpRequest status = 0
- cocos2d-js 使用http时 出现 Response failed, error buffer: The resource could not be loaded because the Ap
- 浅谈如何提高服务器并发处理能力
- struts2一丢丢记录
- SSDB的图形化界面管理工具 phpssdbadmin
- Java多线程wait()和notify()
- Centos搭建SVN服务器
- python练习100例(上)
- Codeforces Round #379 (Div. 2) C. Anton and Making Potions(枚举+二分)
- Android MVP 详解(上)