Transport Security has Blocked a cleartext HTTP- issue.

You got An Error when Calling a Webservice for iOS9 and Above. Error :

App 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.





Apple announce "App Transport Security " for iOS9 and above. Now How to solve this error, Follow the Steps :

Step 1 :   Go to the Info.plist from project Navigation. 

Step 2 :  Click on the + Button.  

Step 3 :  Write  NSAppTransportSecurity Select Category  Dictionary.

Step 4 : Inside dictionary, Passing  NSAllowsArbitraryLoads  Select Category Bool and value True.

Reference Image :





See the developer : https://forums.developer.apple.com/thread/3544

Thanks.
Transport Security has Blocked a cleartext HTTP- issue. Transport Security has Blocked a cleartext HTTP- issue. Reviewed by Kirit Modi on 00:49:00 Rating: 5

No comments:

Powered by Blogger.