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:
parent
293021b200
commit
4f57aa68cd
|
@ -256,6 +256,10 @@
|
||||||
// Not sure whether we need this Accept-header
|
// Not sure whether we need this Accept-header
|
||||||
var headers = { 'X-Icinga-Accept': 'text/html' };
|
var headers = { 'X-Icinga-Accept': 'text/html' };
|
||||||
|
|
||||||
|
if (!! id) {
|
||||||
|
headers['X-Icinga-Container'] = id;
|
||||||
|
}
|
||||||
|
|
||||||
if (autorefresh) {
|
if (autorefresh) {
|
||||||
headers['X-Icinga-Autorefresh'] = '1';
|
headers['X-Icinga-Autorefresh'] = '1';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue