I am getting this error with CORS using request:
Access to XMLHttpRequest at URL’ from origin ‘file://’ has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header contains the invalid value ‘’.
It happens only when i run the apk on phone.
What i did:
- enabled CORS on server, tested with curl
- added “access origin=”*" " to config.xml
- tested on android emulator, all fine (i guess my mobile webview sucks)
What can i do to fix this problem?