1

I'm using Xcode 7. when iOS 9 simulator did not connect to internet, I added App transport security to info.plist to allow insecure communication. It did work for some time. But again, it has stopped working. Have tried 'reset content and settings', restarting. nothing seems to work. Has anyone come across this? know how to solve?

Thanks.

preeti
  • 15
  • 4

1 Answers1

1

You can find detail related to issue here App Transport Security Exceptions in iOS 9 and OSX 10.11

Apple provides a way to disable ATS altogether

<key>NSAppTransportSecurity</key>
<dict>
  <!--Include to allow all connections (DANGER)-->
  <key>NSAllowsArbitraryLoads</key>
      <true/>
</dict>

There are other keys that you can use to configure App Transport Security as well

NSRequiresCertificateTransparency
NSTemporaryExceptionRequiresForwardSecrecy
NSTemporaryThirdPartyExceptionAllowsInsecureHTTPLoads
NSTemporaryThirdPartyExceptionMinimumTLSVersion
NSTemporaryThirdPartyExceptionRequiresForwardSecrecy
Macrosoft-Dev
  • 2,195
  • 1
  • 12
  • 15