iosxcodeafnetworkingios13app-transport-security

App transport Security load Error even after adding it


  1. Even after adding App Transport Security Settings and Allow Arbitrary Loads under it I'm still getting the same 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."

  1. also couldn't figure out why the value of 'App Transport Security Settings' on the right side of the table is showing 0

enter image description here


Solution

  • You should add Allow Arbitrary Loads inside App Transport Security Settings dictionary, like this:

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

    enter image description here