From cf5c1f82d4fd7920c50c74639262b0b38adfe9bb Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 17 Jan 2024 06:14:03 +0000 Subject: [PATCH] fix: use same domain with refresh token api --- packages/nc-gui/composables/useApi/interceptors.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nc-gui/composables/useApi/interceptors.ts b/packages/nc-gui/composables/useApi/interceptors.ts index cf6032b2a0..96e6bc08c3 100644 --- a/packages/nc-gui/composables/useApi/interceptors.ts +++ b/packages/nc-gui/composables/useApi/interceptors.ts @@ -99,6 +99,7 @@ export function addAxiosInterceptors(api: Api) { return api.instance .post('/auth/token/refresh', null, { withCredentials: true, + baseURL: location.pathname, }) .then((token) => { // New request with new token