There are several threads on this on this forum and I feel I’ve read them all and tried every possible combination of the fixes but with no joy.
This is an issue with cordova-plugin-whitelist and (probably) my configuration, so any help would be appreciated!
All http requests on Android (an actual device, not a simulator) return 404. The URL is accessible via other apps (e.g. Chrome), and if I go in via Chrome remote inspector and look at the return the data is there, just the status code is 404 so the request doesn’t work. It works in browser and iOS.
My ionic info:
Cordova CLI: 6.5.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.0
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.2.1 Build version 8C1002
My CSP meta tag in index.html:
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
I have these tags in config.xml:
<access origin="*"/> <allow-navigation href="*" />
My reading of the docs + the fixes noted in other threads indicate the above should work… but I’ve been tearing my hair out for the last few hours on this with no progress!
Any help or pointers would be very much appreciated, thank you.