js: Transmit `X-Icinga-Container` for all requests

This tells the server which container the client will use
to render the response in
This commit is contained in:
Johannes Meyer 2021-02-24 16:53:34 +01:00
parent 293021b200
commit 4f57aa68cd
1 changed files with 4 additions and 0 deletions

View File

@ -256,6 +256,10 @@
// Not sure whether we need this Accept-header
var headers = { 'X-Icinga-Accept': 'text/html' };
if (!! id) {
headers['X-Icinga-Container'] = id;
}
if (autorefresh) {
headers['X-Icinga-Autorefresh'] = '1';
}