xcode提示App Transport Security has blocked a cleartext HTTP (http://) resource load的解决办法

释放双眼,带上耳机,听听看~!

,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”即可。

人已赞赏
iOS文章

Cannot proceed with delivery: an existing transporter instance is currently uploading this package。

2020-5-1 9:33:02

iOS文章

iOS UIWebView加载POST请求

2020-5-1 10:48:02

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索