iOS App Development Book/Video Series

General Category => FAQs => Topic started by: kjmcneish on November 09, 2015, 01:40:55 PM

Title: How to fix the "App Transport Security Has Blocked a Cleartext HTTP" error
Post by: kjmcneish on November 09, 2015, 01:40:55 PM
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:

(http://iosappsfornonprogrammers.com/images/AppTransportSecuritySettings.jpg)

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 (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 (https://itunes.apple.com/us/app/robot-tic-tac-toe/id990638517?mt=8)