I am using ionic3 for my application development. I am getting below error for android application for the first time installation. Then after re-launching the app is working correctly.
Seeing this issue only on a new/fresh install of the app. Restarting the app resolves the issue which is strange.
I have seeing this issue after I set targetSdkVersion 28 i.e, building app for Android 9 pie.
Access to XMLHttpRequest at ‘the url’ from origin ‘file://’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource’.
After I changed cleartextTrafficPermitted=“true” I am getting following error in my app.
My App Confuration