My cordova version is 5.0.0
I am getting a 404 error for the all ajax request made when the app is deployed on the device. On the web browser, it works fine but same app when deployed on a device does not work.
I tried adding following to solve the issue but it hasn't helped.
<access origin="*" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
I had the same issue and had to install the cordova-plugin-whitelist
cordova plugin add cordova-plugin-whitelist
Credit goes to this stackoverflow article - Ajax Command to request URL no longer working