From 6509bf4ad5a3eb05426c0fbdde2b8a4075a18e16 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 26 Sep 2025 14:10:23 +0200 Subject: [PATCH] Possibly fixes #1554 Auth proxies may send a redirect header and any status code --- client/boot.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/boot.ts b/client/boot.ts index 91f3b653..de746b94 100644 --- a/client/boot.ts +++ b/client/boot.ts @@ -236,11 +236,9 @@ async function cachedFetch(path: string): Promise { } } const redirectHeader = response.headers.get("location"); - if ( - response.status === 401 && redirectHeader - ) { + if (redirectHeader) { alert( - "Received an authentication redirect, redirecting to URL: " + + "Received an (authentication) redirect, redirecting to URL: " + redirectHeader, ); location.href = redirectHeader;