I have an IOS app built with Ionic 1.3. The app communicates with the backend through .NET Web APIs and the endpoint is hard coded in the app. Everything was working great, until we decided to move the APIs to a sub-domain. A 308 permanent redirect is setup for the API. Now the app doesn’t work completely. In the simulator, I’m getting CORS preflight errors. On the device, no connection at all.
In the app I have white list plugin installed, content security policy and access origin set to *.
How do I resolve this without changing the endpoint in the device and affect end users?
I thought CORS should not affect the app if its running on actual device because its running from file?