How can I do an X-HTTP-Method-Override for an ajax request in jQuery?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
With 1.5 you can now pass in a headers option:
This is set before 'beforeSend' is called, so it could still get overwritten. See http://api.jquery.com/jQuery.ajax/
-- fixed incorrect syntax (wouldn't let me save with less than 6 character edit, so writing this message
You could set custom headers when performing an ajax request by using the beforeSend callback: