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

CORS not working in apk but works in ionic serve( browser)

$
0
0

@iiitmahesh wrote:

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"
}
]
}

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



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