werderpoddi
werderpoddi

Reputation: 85

App Transport Security in Simulator

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?

Upvotes: 2

Views: 681

Answers (1)

Gerald
Gerald

Reputation: 814

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.

Upvotes: 2

Related Questions