Mohsin Khubaib Ahmed
Mohsin Khubaib Ahmed

Reputation: 1018

App access blocked due to App Transport Security has blocked a cleartext HTTP and done almost everything

I am trying to login on my iOS App via Facebook using 6.4 SDK version, and I am constantly getting this error although I have done almost everything the Facebook developers page and SO here, recommends! Please help. I get this message:

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.

Here attached is a snapshot of my Info.Plist Thank you in advance.

enter image description here

Upvotes: 0

Views: 889

Answers (3)

2apreety18
2apreety18

Reputation: 471

Open your info.plist file of your project with any editor of your preference, then add this code at the end of the file before the last

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

Upvotes: 0

Uma Madhavi
Uma Madhavi

Reputation: 4917

You need to add this also Allows Arbitrary Loads

enter image description here

Upvotes: 1

Bangalore
Bangalore

Reputation: 1580

I have added only this much in my info.plist

Can you try this

enter image description here

Upvotes: 1

Related Questions