Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
17060 Discussions

404 on AJAX call

Adam_G_
New Contributor I
1,195 Views

I just upgraded to the 3240 build of the XDK and updated to Cordova 4.5.1. I add the CSP line to my index.html (<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'">) as well as adding Network request *, Intent for http://* and https://* and * for navigation (basically setting everything to access everything).  It works in the emulator but when I go to debug on a device it fails with a 404 on my ajax code.  I can't figure out why. Since I tried for hours to find a solution that would identify the bug in my code I eventually just did a build and it worked fine on my device.

 

Any ide why the debugger is failing?  This really burned a lot of cycles for something that seems to be a debugger issue (I also saw another thread that seemed to indicate it might be a crosswalk 16 issue).

 

Any info here as to how I can debug this and why it only fails when debugging?

0 Kudos
5 Replies
Raiden_d_1
Beginner
1,195 Views

Same problem :-/

0 Kudos
PaulF_IntelCorp
Employee
1,195 Views

We haven't isolated the problem, but some users have reported if you duplicate what's in the <allow-intent> fields into the <allow-navigation> field that it works, which doesn't make sense, but is worth a try...

0 Kudos
Raj_Kumar
Novice
1,195 Views

 

 

I would request you to disable carrier network and enable just wifi in debug mode will solve this issue

 

0 Kudos
PaulF_IntelCorp
Employee
1,195 Views

Raj -- can you provide more detail? I don't follow what you mean by "disable carrier network." Do you mean turn off the data connection on your device and only use wifi on the device?

0 Kudos
PaulF_IntelCorp
Employee
1,195 Views

For others looking at this thread, please see this related thread, which might help > https://software.intel.com/en-us/forums/intel-xdk/topic/622229

0 Kudos
Reply