Currently, I’m developing an app which fetch json response from my website build on wordpress.
When i run my app on chrome browser using ionic serve the json is received successfully
But when I deploy my app on actual android device using ionic run android, it throws following exception.
EXCEPTION: Response with status: 0 for URL: null
GET<my website URL> net::ERR_NAME_NOT_RESOLVEDpolyfills.js:2 XMLHttpRequest.n.responseBlob.r.function.o.(anonymous function).F.(anonymous function).(anonymous function)
I don’t think this is a CORS error because I’ve already added *header("Access-Control-Allow-Origin: "); in my json api plugin.
Please help me to fix this issue.