6

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>
Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Anthony Saltarelli
  • 345
  • 1
  • 4
  • 15

3 Answers3

6

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'

Paulw11
  • 108,386
  • 14
  • 159
  • 186
0

Also Parse just announced that they will update their SSL certs to be ATS compatible...

der_michael
  • 3,151
  • 1
  • 24
  • 43
0

enter image description here

Just add above plist entry in your projects Info.plist

Prabhu.Somasundaram
  • 1,380
  • 10
  • 13
  • Use any REST client and run it on your machine. call the webservice and ensure that your machine would be able to connect with your webserver. – Prabhu.Somasundaram Aug 17 '15 at 07:14
  • This is a Bad Idea (tm) as it will make all connections vulnerable. See this answer for for the right solution: http://stackoverflow.com/a/32560433/1103584 – Marius Waldal Oct 20 '15 at 13:04