今天在进行AppleWatch开发过程中,在进行网络请求时,会报如下错误,网络请求失败:App Transport Security has blocked a cleartext HTTP(http://)resource load since it is insecure .Temporary exception can be configured via your app's Info.plist file.
这是苹果改变了网络请求的安全性限制,解决方案如下:
在Info.plist文件中修改如下:
.
github主页:https://github.com/chenyufeng1991 。欢迎大家访问!