http的问题

来源:6-1 使用AFNetworking

慕粉4060693

2018-05-09 21:05

2018-05-09 20:58:02.762529+0800 Weather[2620:96104] 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.

2018-05-09 20:58:02.762867+0800 Weather[2620:96104] Cannot start load of Task <D6DFE9BC-6B4B-49AF-8ECD-9DEF1709C4A0>.<1> since it does not conform to ATS policy

2018-05-09 20:58:02.763240+0800 Weather[2620:96105] Task <D6DFE9BC-6B4B-49AF-8ECD-9DEF1709C4A0>.<1> finished with error - code: -1022

Error:The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.


我在info.plist里面设置了Allow Arbitray Loads,还是报错


写回答 关注

1回答

Swift Weather APP

本课程将带领大家使用Swift语言开发一个完整的天气 iOS APP

35555 学习 · 241 问题

查看课程