Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

CORS issue on release build but not ionic run android

$
0
0

@nwkeeley wrote:

I have my ionic app using a remote API server for data.

I have installed cordova-plugin-whitelist

config.xml I have:
access origin="*"
allow-navigation href="*"

When I run: ionic run android it installs the app on my device and it works fine I am able to access my api

When I do: cordova build --release android and run thru the steps I end up with a signed .apk if I do adb install my.apk it installs on the phone however I have the CORS issue.

My question is why does it work with ionic run android but not my release build .apk is there something I am missing when creating my release build?

Thanks in advance!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>