Assistance Required for Accessing Non-Secure HTTP API in Ionic Build App

Dear Team,

I was previously able to access a non-secure HTTP API in my Ionic-built app. However, I am now encountering an error where the API requests are being rejected. Interestingly, this API works perfectly on Android and web platforms without any issues.

As part of my troubleshooting, I have already added the following lines to my Info.plist file:

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

Could you kindly suggest any alternative solutions or additional settings required to access this HTTP API?

Your help would be greatly appreciated.

Thank you, Mozib

Answered by DTS Engineer in 821573022

Is the server in question on the public Internet? Can you share its URL?

If so, please reply here with the URL.

DevForums may complain that the URL isn’t on its allow list; to get around that, post it in the clear, per tip 14 in Quinn’s Top Ten DevForums Tips.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Is the server in question on the public Internet? Can you share its URL?

If so, please reply here with the URL.

DevForums may complain that the URL isn’t on its allow list; to get around that, post it in the clear, per tip 14 in Quinn’s Top Ten DevForums Tips.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Assistance Required for Accessing Non-Secure HTTP API in Ionic Build App
 
 
Q