From 5ecf457a359286202ed3ab4dc43d865fbcebea62 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 13 Dec 2020 13:24:59 -0800 Subject: [PATCH] proxy auth: be explicit it is a 302 (default) --- src/proxyauth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {