App Transport Security blocked Parse files ... Swift 2 error

I constantly get this type of error in my application that uses the Parse.com server:

App Transport Security has blocked the loading of the plaintext HTTP resource (http: //) because it is unsafe. Temporary exceptions can be configured through your application's Info.plist file.

I tried adding the following to my info.plist, but it did not work. No other solutions on the Internet 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> 
+6
source share
3 answers

This plist entry works 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 NSIncludesSubdomains key, and not the NSIncludeSubdomains - extra s between "Include" and "Subdomains"

+6
source

Also Parse has just announced that they will renew their SSL certificates to be compatible with ATS ...

0
source

enter image description here

Just add the plist element to your Info.plist projects

0
source

All Articles