Side navigation
#5512 closed enhancement (worksforme)
Opened November 14, 2009 10:04AM UTC
Closed November 14, 2009 10:01PM UTC
Last modified January 10, 2011 09:31AM UTC
add header option for sending custom http header
Reported by: | quaff | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | 1.4 |
Component: | ajax | Version: | 1.3.2 |
Keywords: | header setRequestHeader | Cc: | |
Blocked by: | Blocking: |
Description
$.ajax({
'url':'/test',
header:{'customHeaderName':'customHeaderValue'}
});
That is the purpose of the beforeSend function, it passes you the xhr object and you can call setRequestHeader on it.