I continually get this type of error in my app which uses a Parse.com backend:
App 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.
I have tried adding the following to my info.plist but it has not worked. No other solutions online have worked. Does anyone know what to do?
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>files.parsetfss.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionsAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
How to allow HTTP URL request for debug schema in Xcode — Swift & SwiftUI. If you need to hit the HTTP request from Xcode and above you need to specify the URL in info. plist file to allow the request. You can allow all the http request by adding arbitrary load to “YES” in info.
A Boolean value indicating whether App Transport Security restrictions are disabled for all network connections.
App Transport Security (ATS) is a privacy feature introduced in iOS 9. It's enabled by default for new apps and enforces secure connections.
This plist entry is working for me -
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>files.parsetfss.com</key>
<dict>
<key>NSIncludeSubdomains</key>
<true/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
You have the key NSIncludesSubdomains
rather than NSIncludeSubdomains
- an extra s between 'Include' and 'Subdomains'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With