How can I set a custom field in POST header on submit a form?
You could use $.ajax to avoid the natural behaviour of . You could, for example, add an event to the submission button and treat the POST request as AJAX.