# How to enable HTTP traffic from an iOS app - Developers’ Notes

Source: https://www.ironin.it/blog/how-to-enable-http-traffic-from-an-ios-app-developers-notes.html

Published 15 March 2019

[iOS](https://www.ironin.it/blog/tags/ios) [quality assurance](https://www.ironin.it/blog/tags/quality-assurance) [mobile development](https://www.ironin.it/blog/tags/mobile-development) [developers notes](https://www.ironin.it/blog/tags/developers-notes)

![How to enable HTTP traffic from an iOS app - Developers’ Notes](https://www.ironin.it/api/media/file/ironin-seed-ZmFlMTQ0ZGYtOWU1NC00NDA2LTkyNDQtMTE5NjU0ODg4ODU4_how-to-enable-http-traffic-from-an-ios-app.jpg)

When testing your mobile app while the API server runs locally, remember that Apple has a strict security policy and might block your connection. Luckily, there’s a way to enable it.

Today, we’d like to share a find that occured during a test of one of our [iOS apps](https://www.ironin.it/services/ios-development) with the API server running locally. When we updated the URL in the project configuration we got an error: `Could not connect to the server`.

It turned out that Apple is very strict about connections made from the iOS app and it does not allow for unsecured connections by default.

In order to enable it, you need to open the `Info.plist` file and add:

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

You can either do that by opening the file as source code or in the GUI:

![Blog post image](https://www.ironin.it/api/media/file/ironin-seed-NzQzMTg3MjAtMmIzYi00NjM1LWJlOTEtZTFjODc0ZjkwMzk0_image.png)

After this simple change, the app was able to connect to our local API server without any errors.

Enjoy today’s Developers’ Notes, courtesy of Łukasz, Software Development Team Leader. More will be coming soon!

Share:

Author: iRonin IT Team

Need software like this built?

[Software development →](https://www.ironin.it/ai-software-engineering)

Our code is merged into 10 open-source AI-agent projects, two of them with tens of thousands of GitHub stars.

[Talk to us →](https://www.ironin.it/contact-us.html?offer=ai-software-engineering)

## Read next

- [Is this the cryptopocalypse? Who needs to act on post-quantum cryptography now](https://www.ironin.it/blog/post-quantum-cryptography-who-must-act-now.html)
- [Which AI model is best for your own task? Our own test and a public leaderboard disagreed](https://www.ironin.it/blog/own-ai-model-evals.html)
- [What uses up a Claude plan's usage limit? What each kind of token costs against it](https://www.ironin.it/blog/claude-usage-limit-token-costs.html)
