2

I am trying to connect to http://localhost with the simulator for debugging. Since iOS 9 there is App Transport Security enabled and all Connections without TLS 1.2 are getting blocked.

Is there a way to allow connections only for this URL in DEBUG-Builds without adding another target?

1 Answers1

2

You can add the following property to your application's plist file to allow the connection for development:

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

I hope that helps.

Gerald
  • 694
  • 7
  • 19