錯(cuò)誤信息:
請(qǐng)求失敗--Error Domain=NSURLErrorDomain Code=-1022 "
The resource could not be loaded because the App
Transport Security policy requires the use of a secure connection."
錯(cuò)誤域
運(yùn)輸安全政策需要一個(gè)安全的鏈接使用
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.
應(yīng)用程序安全運(yùn)輸了明文HTTP資源負(fù)載是不安全的。暫時(shí)的異??梢酝ㄟ^你的應(yīng)用程序 info. plist 文件配置
解決方法

A6A36E26-0BB1-4E59-B03B-A34A384A09B5.png
如果所示:1.在info .plist 中添加 APP Transport Security Settings
- 再在后面 添加 Allow Arbitrary Loads = YES 即可