To allow unsecure HTTP request from Swift code by URLSession here are the settings visually: If you want to allow HTTP connections to any site, you can use this keys: NSAppTransportSecurity NSAllowsArbitraryLoads If you know which domains you will connect to add: NSAppTransportSecurity NSExceptionDomains example.com NSExceptionAllowsInsecureHTTPLoads NSIncludesSubdomains Transport security has blocked HTTP request