Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transport security has blocked a cleartext HTTP

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.

Xcode

Assume that my domain is example.com.

like image 500
Jeef Avatar asked Jul 06 '15 20:07

Jeef


1 Answers

Use NSAppTransportSecurity:

Enter image description here

You have to set the NSAllowsArbitraryLoads key to YES under NSAppTransportSecurity dictionary in your info.plist file.

Plist configuration

like image 181
User123335511231 Avatar answered Sep 21 '22 06:09

User123335511231