
Periodic requests made by UI must contain the wok-robot header to do not restart the user session counting down. Without the header, the user session is refreshed on each /notifications request and will never expire. It closes issue https://github.com/kimchi-project/kimchi/issues/376 Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com> --- ui/js/src/wok.api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/js/src/wok.api.js b/ui/js/src/wok.api.js index 56e90ed..5238594 100644 --- a/ui/js/src/wok.api.js +++ b/ui/js/src/wok.api.js @@ -63,6 +63,7 @@ var wok = { wok.requestJSON({ url: 'notifications', type : 'GET', + headers: {'Wok-Robot': 'wok-robot'}, dataType : 'json', success : suc, error: err -- 2.5.5