Side navigation
#13120 closed bug (notabug)
Opened December 26, 2012 11:30PM UTC
Closed January 03, 2013 04:55PM UTC
AJAX setRequestHeader not adding header for soapaction
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When executing a $.ajax call a custom header of "soapaction" does not get added to the HTTP Header in the request, however when I override the existing "Accept-Language" header, the overridden value is displayed. I've also tested this with version 1.7.1 with the same result.
Browsers tested: Firefox 17.0.1, Chrome 23.0.1271.101
Code with failure to add header:
beforeSend: function(xhr) {
xhr.setRequestHeader("soapaction","/CatalogService/UpdateCatalogEndpoint");
}
Code with a successfully augmented header:
beforeSend: function(xhr) {
xhr.setRequestHeader("Accept-Language", "en-US");
}
Attachments (0)
Change History (4)
Changed December 27, 2012 02:23PM UTC by comment:1
Changed December 27, 2012 11:41PM UTC by comment:2
owner: | → anonymous |
---|---|
status: | new → pending |
Please provide a test case in jsfiddle, you can start with this:
http://jsfiddle.net/dmethvin/c9AgT/1/
In that example I can see it clearly setting the header when I use the Network tab.
Changed January 03, 2013 04:54PM UTC by comment:3
status: | pending → new |
---|
Please close this ticket, the root cause was found and it is outside JQuery.
Changed January 03, 2013 04:55PM UTC by comment:4
resolution: | → notabug |
---|---|
status: | new → closed |
#13121 is a duplicate of this ticket.