您好,欢迎来到外链网!
当前位置:外链网 » 站长资讯 » 专业问答 » 文章详细 订阅RssFeed

iOS 开发 设置网络请求允许使用http

来源:互联网 浏览:78次 时间:2023-04-08

控制台打印:Application 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.
原因是:苹果官方为了安全使用了HTPPS 作为安全访问链接,如果想继续使用http

解决办法:修改info.plist文件
在 App Transport Security Settings 添加: Allow Arbitrary Loads 设置为YES

01914801