# App Transport Security policy issue when running capacitor ios app

**URL:** <https://forum.ionicframework.com/t/app-transport-security-policy-issue-when-running-capacitor-ios-app/249730>\
**Category:** Capacitor\
**Created:** [October 21, 2025, 10:06am UTC](https://forum.ionicframework.com/t/app-transport-security-policy-issue-when-running-capacitor-ios-app/249730 "2025-10-21T10:06:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![timmbach](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@timmbach](https://forum.ionicframework.com/u/timmbach)\
**Post date:** [October 21, 2025, 10:06am UTC](https://forum.ionicframework.com/t/app-transport-security-policy-issue-when-running-capacitor-ios-app/249730/1 "2025-10-21T10:06:06Z")

</div>

When i try to login to my ios capacitor app on the emulator i get this error: **2025-10-21 10:41:30.384049+0100 App[1114:834769] [NSURLSession sharedSession] may not be invalidated**

**ERROR MESSAGE: {“code”:“NSURLErrorDomain”,“message”:“The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.”,“errorMessage”:“The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.”}**

**⚡ [error] - {“code”:“NSURLErrorDomain”,“message”:“The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.”,“errorMessage”:“The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.”}**
