Making REST API call on mobile, via Meteor Cordova


How do I resolve the CORS (access-control-allow-origin) issue?

  1. I am calling axios.get inside a method on the server
  2. I am using meteor run android-device --mobile-server http://my.server.addr to run the app on my phone
  3. I do disconnect WiFi on my phone

Even though I am running the app off the server, the CORS error still insist that I am making the XMLHttpRequest call from localhost, which at this point I assume is the real problem.

Can anyone help? If I haven’t made clear what the issue is, please let me know. Thanks.