Author Topic: How to fix the "App Transport Security Has Blocked a Cleartext HTTP" error  (Read 2995 times)

kjmcneish

  • Administrator
  • *****
  • Posts: 719
    • View Profile
If you are using a UIWebView and allow your users to enter any URL in the address bar, you will get the run time error "App Transport Security Has Blocked a cleartext HTTP resource load".

To get around this, you can add the App Transport Security Settings key and the Allow Arbitrary Loads sub key to your app's .plist file:



All the best!
Kevin McNeish
Author of Learn to Code in Swift: https://itunes.apple.com/us/book/learn-to-code-in-swift/id942956811?mt=11
Check out our Robot Tic-Tac-Toe app: https://itunes.apple.com/us/app/robot-tic-tac-toe/id990638517?mt=8
« Last Edit: November 11, 2015, 12:15:17 PM by kjmcneish »