您的位置:首页 > 理论基础 > 计算机网络

iOS应用访问不了网络的解决方法 App Transport Security has blocked a cleartext HTTP

2016-04-16 15:11 543 查看
Tourist2[3930:314874] 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.

好伤心,发现贴了图片居然没有显示。。
1、首先在左边的Project Navigator中,点击工程名,在右边的targets中选择第一个,然后在右边选择
Info(一般是第四个)
找到Bundle name,在其那里右键,选择Add Row,然后在新建行的key中选择App Transport Security Settings,然后在其里边新建一行,选择Allow Arbitrary Loads,设置其Value 为YES.
OK,可以访问网络了。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  应用 网络 app security iOS