На
https://javascript.info/xmlhttprequest сказано:
Цитата:
|
Please note that open call, contrary to its name, does not open the connection. It only configures the request, but the network activity only starts with the call of send.
|
Т. е. все header-ы отправляются после .send(). Вопрос закрыт, спасибо.