Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix(frontend): handle 401 in interceptor properly (#145)

Liu Ji3df990d55f34
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index 883d1afd2b..2584c84d93 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -70,7 +70,7 @@ axios.interceptors.response.use(
// in such case, we shouldn't logout.
if (error.response.status == 401) {
const host = store.getters["actuator/info"]().host;
- if (error.response.request.responseUrl.startsWith(host))
+ if (error.response.request.responseURL.startsWith(host))
store.dispatch("auth/logout").then(() => {
router.push({ name: "auth.signin" });
});