Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Adam_G_
New Contributor I
72 Views

404 on AJAX call

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?

Tags (2)
0 Kudos
5 Replies
Raiden_d_1
Beginner
72 Views

Same problem :-/

PaulF_IntelCorp
Employee
72 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...

Raj_Kumar
Novice
72 Views

 

 

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

 

PaulF_IntelCorp
Employee
72 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?

PaulF_IntelCorp
Employee
72 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

Reply