App Transport Security has blocked a cleartext HTTP resource

后端 未结 6 679
不思量自难忘°
不思量自难忘° 2020-12-01 13:15

I am using Socket.IO library in swift and I keep getting this error:

App Transport Security has blocked a cleartext HTTP (http://) resource

6条回答
  •  臣服心动
    2020-12-01 13:31

    I'm working in xCode 8.2. It's a little different, but editing the PLIST file you need to add this two Items in the App Transport Security Settings Line... :

    Allow Arbitrary Loads and Allow Arbitrary Loads in Web Content... and give them both the key YES.

    It worked for me, hope this work for you and sorry for my English.

提交回复
热议问题