App Transport Security policy issue when running capacitor ios app

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.”}

:high_voltage: [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.”}