Ajax request headers

Hi there!
In vaadin flow, how can I add additional request headers to all frontend to server requests?
For example, i want to add:
xhttp.setRequestHeader("Custom-token", "abcdef123456");
It is needed, because of some nginx auth settings.
Thanx for the answers
Viktor