Skip to content

Commit

Permalink
fix(ui): trigger page reload on 401 (fix basic auth) (#3825)
Browse files Browse the repository at this point in the history
  • Loading branch information
oandrew authored Jul 23, 2024
1 parent 37dfcd3 commit 176ef24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apis/ConfigApis.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 176ef24

Please sign in to comment.