My version of cordova 5.0.0
I get 404 error for all ajax request created when deploying the application on the device. It works fine in a web browser, but one application doesnβt work when deployed to a device.
I tried to add the following to solve the problem, but that did not help.
Config.xml
<access origin="*" />
AndriodManiest.xml
<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 also added the following to my index.html file, but that didn't matter either.
<script> $.support.cors=true; </script>
Does anyone have another trick to solve this problem? This seems to be a fairly common phone issue, but the fixes above worked on the older version of phonegap / cordova, but they didn't work on my case.
Any help would be great.
Sahil May 05 '15 at 8:59 a.m. 2015-05-05 08:59
source share