Forum Moderators: open
JavaScript can modify the meta tag http-equiv attributes of a document. I'm not sure if those attributes would make their way into a form's http request header. Perhaps someone can comment on that, if that's relevant to your application.
In HTTP there are Request headers generated by the client, Response headers generated by servers, and Entity headers associated with resources, usually pages.
It is the Entity header class that is addressed by the meta tags in an HTML page. Since client-side JavaScript only addresses the page, its effects wouldn't reach to the Request headers.
The inclusion of a Authorization header as part of a Request header is triggered by the server challenging an initial request with a WWW-Authenticate header. The receipt of the WWW-Authenticate header and the browser responding to it all reside out of JavaScript's domain.
After searching under these terms, I found things like this:
[devx.com ]
I don't know whether this gets us anywhere.