in ionic serve cors is working in browser but not working apk
. In the browser (using ionic serve) it was working properly , but in apk (using ionic build android ) it was not working…
cordova plugin add cordova-plugin-whitelist (I have added this puigin using CLI)
I have used these things in config.xml
ionic.project
{
“name”: “sampleApp”,
“app_id”: “a2fbab8f”,
“proxies”: [
{
“path”: “/api”,
“proxyUrl”: “http://myserver/api”
}
]
}
Have you added whitelist plugins
yes did rhat. (cordova plugin add cordova-plugin-whitelist)
I already mentioned above ,it is working browser …
Thank you virender (that was very nice article ) it was help full to me.
I have added these to config.xml
access origin="“
allow-intent href=”“
allow-navigation href=”*"
in AndroidManifest.xml
uses-permission android:name=“android.permission.INTERNET” /
uses-permission android:name=“android.permission.ACCESS_NETWORK_STATE” /
but still problem not yet solved
@iiitmahesh so let’s try to see if we can recreate this with a blank app first and figure out where the issue is. What steps would I need to take to recreate this issue?