i have a problem with CORS when i install built apk on my actual device. when i run app on emulator or with ionic serve or even with ionic run it works fine. after installing apk file on actual device on every HTTP request it gives this output:
Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Chrome dev tools: Remote Debug your Ionic App · ionic.zone Look at the console and network tabs for errors.
Where & How do i fix this. The link you provided give details info but couldnt find the steps to solve this issue. Running Ionic app on Real device and due to CORS unable to run it
You can perfectly use Access-Control-Allow-Origin: * as long as you are not using cookies or sessions for authentication or sensible things that may affect the security of your app. I’m not saying it will affect security, but that it might depending on your use case.
I made several REST APIs for Ionic apps and all run with Access-Control-Allow-Origin: *. Maybe I should rewrite this paragraph to make it clear