2
votes

Hey i'm getting this error:

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.

When trying to fetch an image from the web, i know this has to be with the iOS9 App Transport Security but the thing is that in my plist i have the Allow Arbitrary Loads set to true.

More then that i really can't find any more solutions for this problem.

Does anyone have any ideas?

enter image description here

1
Can you add a screenshot of the .plist entry? Just to be sure? - NSNoob
Yeah sure one sec @NSNoob - YYfim
Have you seen this post stackoverflow.com/a/31254874/3096087 ? - Niko
@Niko yeah i've seen it, and i have the Allow Arbitrary Loads to true, like i said in the question. - YYfim
make sure that the image is not on a server within the "Exception Domains" - Daniel

1 Answers

2
votes

In Exception Domains you define a security for specific domains. In this dictionary you can override what is defined with NSAllowArbitoryLoads, for example with:

NSAppTransportSecurity
    NSAllowsArbitraryLoads = YES  
    NSExceptionDomains
        "unsecure-server-i-control.example.com"
        NSExceptionAllowsInsecureHTTPLoads = NO

arbitrary loads are allowed in general, but specifically for unsecure-server-i-control.example.com they are not allowed.

For more information see NSAppTransportSecurity in Apple docs