SyntaxFix
Write A Post
Hire A Developer
Questions
If you are using JQuery with Form plugin, you can use:
$('#myForm').ajaxSubmit({ headers: { "foo": "bar" } });
Source: https://stackoverflow.com/a/31955515/9469069