0

Hi we are not using Native Application, we are using web application. Can you please let us know how this can be achieved in Web Application. Is there any code that we need to add to our web config file.

  • 1
    possible duplicate of [How do I load an HTTP URL with App Transport Security enabled in iOS 9?](http://stackoverflow.com/questions/30731785/how-do-i-load-an-http-url-with-app-transport-security-enabled-in-ios-9) – Dan Beaulieu Sep 28 '15 at 03:10

1 Answers1

0

For HTTP you'll need to add the NSAppTransportSecurity key to your Info.plist, then inside add the NSAllowsArbitraryLoads boolean with the value of YES

enter image description here

It's not recommended to use NSAllowsArbitraryLoads on the App Store as it will whitelist all insecure HTTP loads.

If you know the HTTP url then it's recommended to add a single exception for that particular domain with the NSExceptionAllowsInsecureHTTPLoads key.

enter image description here

Better yet, upgrade to HTTPS/SSL without the need to use any ATS exceptions.

https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/

SomeGuy
  • 9,670
  • 3
  • 32
  • 35