iOS 请求不带http的网址
info.plist 文件
Information Property List 一栏添加 App Transport Security Settings
App Transport Security Settings 下添加 Allow Arbitrary Loads 并把 Value 改为Yes
报错信息:
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
版权声明: 本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 ABin!
