diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 2ad05d29f..178995dcf 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -1015,7 +1015,12 @@ this.icinga.timer.unregister(req.progressTimer); } - if (req.status > 0 && req.status < 501) { + if (req.status == 401) { + this.icinga.logger.debug( + 'Request to ' + url + ' return 401. Will refresh page to trigger new login.' + ); + window.refresh(); + } else if (req.status > 0 && req.status < 501) { this.icinga.logger.error( req.status, errorThrown + ':',