Niharika
Niharika

Reputation: 1198

Added App Transport Security, Still giving Error

I have added App Transport Security in my app's Info.plist file, but when I tried to access this URL http://api.instagram.com/v1/users/self/media/recent?access_token=%@" it gives me an 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.

Upvotes: 0

Views: 298

Answers (3)

Dishant Rajput
Dishant Rajput

Reputation: 1357

you have to ON keychain sharing from capabilities

PROJECT NAME > CAPABILITIES > KEY CHAIN SHARING (ON)

Upvotes: 0

Arasuvel
Arasuvel

Reputation: 3012

Please try with HTTPS URL:

https://api.instagram.com/v1/users/self/media/recent?access_token=%@

Hope this helps.

Upvotes: 0

Ramon
Ramon

Reputation: 1465

You probably have not configured App Transport Security Settings the right way.

Please double check you have something similar to the image below.

simple .plist exception

If that still does not work, you could try adding the domain itself as an exception. You'd use a configuration similar to the image below. (akamaihd.net, facebook.com and fbcdn.net are just an example).

advanced .plist exception

Upvotes: 1

Related Questions