diff --git a/src/proxyauth.js b/src/proxyauth.js index 3c72e6ab3..1722f6fd6 100644 --- a/src/proxyauth.js +++ b/src/proxyauth.js @@ -155,14 +155,14 @@ function authorize(req, res, next) { secure: true }); - res.redirect('/'); + res.redirect(302, '/'); }); }); } function logoutPage(req, res) { res.clearCookie('authToken'); - res.redirect('/'); // do not redirect to '/login' as it may not be protected + res.redirect(302, '/'); // do not redirect to '/login' as it may not be protected } function logout(req, res, next) {