Bug Tracker

Opened 15 years ago

Last modified 15 years ago

#1079 closed bug

FF and IE fail to send custom headers — at Initial Version

Reported by: spinal007 Owned by:
Priority: major Milestone: 1.1.4
Component: ajax Version: 1.1.3
Keywords: ajax custom header headers XMLHttpRequest X-Requested-With Cc:
Blocked by: Blocking:

Description

The 'X-Requested-With' header which should be built-in to jQuery is not being sent with the ajax request. I've checked every line of the code and I'm certain the following lines get executed:

1998 Set header so the called script knows that it's an XMLHttpRequest 1999 xml.setRequestHeader("X-Requested-With", "XMLHttpRequest");

I've also tried my own implementation... Add custom header to every call (HTTP_X_METHOD:Ajax) $().ajaxSend(function(a,r,o){ r.setRequestHeader("X-Method", "Ajax"); });

But this also fails...

Change History (1)

Changed 15 years ago by spinal007

Attachment: jquery-latest.js added

jQuery v1.1.1 (uncompressed)

Note: See TracTickets for help on using tickets.