Possibly fixes #1554

Auth proxies may send a redirect header and any status code
This commit is contained in:
Zef Hemel
2025-09-26 14:10:23 +02:00
parent 283cd4224d
commit 6509bf4ad5
+2 -4
View File
@@ -236,11 +236,9 @@ async function cachedFetch(path: string): Promise<string> {
}
}
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;