0

My info.plist is set as follows:

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

enter image description here However when loading "www.google.com" into a UIWebView, I still receive an ATS security error:

The resource could not be loaded because the App Transport Security policy requires the use of a secure connection

JeffN
  • 1,575
  • 15
  • 26

2 Answers2

0

The exact value is

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

Once you have entered into the plist make sure it is correctly represented in the Project settings info tab

enter image description here

ipraba
  • 16,485
  • 4
  • 59
  • 58
  • It is set correctly as you demonstrated. However in the webview load did fail method I am still receiving that error. – JeffN Nov 16 '15 at 03:18
0

In my case the issue was actually that the info.plist file was not properly assigned to my target. The key in the Plist was correct. At some point I had divided my app into 2 targets for a lite and pro version, each with their own info.plist, however they were not properly assigned.

This can be checked underTarget > Build Settings > Search for "Info.plist" > Change path under targeting

JeffN
  • 1,575
  • 15
  • 26