I am using Socket.IO library in swift and I keep getting this error:
App Transport Security has blocked a cleartext HTTP (http://) resource
Another way to solve this, which I found more convenient, is to disable App Transport Security by default using the NSAllowsArbitraryLoads key. So any domains you do not include in the NSExceptionDomains dictionary (or if you don't include NSExceptionDomains at all) will not be subject to App Transport Security.