Ionic 3 api not working in device

allow the origin “localhost:8080” in server. That is the host and the port when running on the device.

If you can not change the server, use cordova http plugin. That should bypass CORS.

1 Like

I had the same problem and I solved by installing the cordova-plugin-whitelist plugin and configure it in the config.xml file

I had same issue and I was using then I changed my url to and problem solved