Xcode 7 错误(Application Transport Security has blocked a cleartext HTTP (http://) resource load )

来源:互联网 发布:淘宝仓储管理系统 编辑:程序博客网 时间:2024/05/19 20:22


问题描述:

控制台打印:

Application 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 beta1中,苹果将原http协议改成了https协议,使用 TLS1.2 SSL加密请求数据,禁用了明码http请求。

解决办法:

修改项目的info.plist文件,添加如下图所示



0 0