diff --git a/src/apis/ConfigApis.js b/src/apis/ConfigApis.js index 10ee32ffb9..abd4f48a39 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,