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


  • 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:
Check out our Robot Tic-Tac-Toe app:
« Last Edit: November 11, 2015, 12:15:17 PM by kjmcneish »