As far as I know, this will not be possible, this will break the guards against CSRF in Chrome.
If you could do this, the whole concept of XHR would fall apart.
Here is an extension that you can use to control the header on the fly, but so far I have not been able to get it to manipulate the socket.
Have a look here if you want to know more about it.
But this does not stop you from implementing your own client (instead of chrome), where you can literally send any headers you want, not sure if this will help you, sorry.
tato source share