Karl Kivi
Karl Kivi

Reputation: 145

(ATS) Application Transport Security iOS 9

Basically my application receives data from web, where several files are downloaded to my app.

So, I have done changes in info.plist

added that code:

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key><true/>
    </dict>

But still that error occurs:

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.

Any ideas that might solve this error or have I missed sth else?

Upvotes: 0

Views: 169

Answers (1)

danieltmbr
danieltmbr

Reputation: 1052

Try to add exception to your .plist

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
        <key> >>>>IP ADDRESS OR URL HERE<<<< </key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSTemporaryExceptionMinimumTLSVersion</key>
            <string>1.0</string>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
    </dict>
</dict>

Upvotes: 1

Related Questions