原因/解決辦法:iOS 的網(wǎng)絡(luò)請(qǐng)求要求的安全性比較高都是https格式的瓮恭,如果非要使用http格式的,就必須在info.plist文件中進(jìn)行修改凛膏,允許使用安全性較低的http格式的,如下圖在info.plist 中輸入App Transport Security Settings ====>Allow Arbitrary Loads
iOS 發(fā)送HTTP請(qǐng)求報(bào)錯(cuò):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.
如圖設(shè)置