Transport security has blocked a cleartext HTTP in iOS

What setting do I need to put in my info.plist to enable HTTP mode as per the following error message?

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.

So, here is the answer for your question which saves your time and pull you from stucked error. If you are using Xcode 8.0 and Swift 3.0 or Swift 2.2 or even Objective C:

<key>NSAppTransportSecurity</key>
<dict>…

--

--

iOS Developer, Triple graduated, Passionate, Love workout, blogger

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mr.Javed Multani

iOS Developer, Triple graduated, Passionate, Love workout, blogger