Jörn, >> 462 ajaxSettings: { >> 463 global: true, >> 464 type: "GET", >> 465 timeout: 0, >> 466 contentType: "application/x-www-form-urlencoded", >> 467 processData: true, >> 468 async: true, >> 469 data: null, >> 470 headers: {"X-Requested-With": "XMLHttpRequest"} >> 471 }, >> >Now you have to explicitly extend the headers object to add additional >global headers. Otherwise you'd overwrite the x-requested-with header, >and that could be really hard to find.
You could change headers to defaultHeaders and have headers extend the defaultHeaders. That I think would solve the issue... -Dan