问题:
Xcode项目发送网络请求时,报错:“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”。
原因:
新特性要求App内访问网络请求,要采用 HTTPS 协议。
解决方法:
在Info.plist中,添加Dictionary类型的App Transport Security Settings,在其中添加boolean类型的Allow Arbitrary Loads,并将其值设为YES。