I am using angular’s HttpModule and HttpClient in my ionic 4 project. But it is giving CORS error in android platform.
So i have tried with ionic http plugin. But it is not working in desktop.
Can anyone please suggest me on this?
I am using angular’s HttpModule and HttpClient in my ionic 4 project. But it is giving CORS error in android platform.
So i have tried with ionic http plugin. But it is not working in desktop.
Can anyone please suggest me on this?
an option : use both.
build a check -> if platform cordova -> use Native Http, else -> use Angular Http
That could be an backend issue too… check with your backend and ask them to allow your android origin to get the API to work.
Check if your server is handeling it correctly:
Hi there,
Add this plugin in chrome: Allow-Control-Allow-Origin
If you have already added this and still facing with this issue add allow header code in backend files.