From 176ef248cdc87c1c7857a66c3fba37f34eca99ae Mon Sep 17 00:00:00 2001 From: Andrew Onyshchuk Date: Tue, 23 Jul 2024 07:48:17 -0700 Subject: [PATCH] fix(ui): trigger page reload on 401 (fix basic auth) (#3825) --- src/apis/ConfigApis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apis/ConfigApis.js b/src/apis/ConfigApis.js index 10ee32ffb9e..abd4f48a399 100644 --- a/src/apis/ConfigApis.js +++ b/src/apis/ConfigApis.js @@ -66,7 +66,7 @@ export default { Accept: 'application/json', }, }) - if (response.type === 'opaqueredirect') { + if (response.type === 'opaqueredirect' || response.status === 401) { throw new axios.AxiosError( 'Caught redirect for auth-enabled, rethrowing', response.status,