Browse Source

fix: use same domain with refresh token api

pull/7444/head
Pranav C 8 months ago
parent
commit
cf5c1f82d4
  1. 1
      packages/nc-gui/composables/useApi/interceptors.ts

1
packages/nc-gui/composables/useApi/interceptors.ts

@ -99,6 +99,7 @@ export function addAxiosInterceptors(api: Api<any>) {
return api.instance return api.instance
.post('/auth/token/refresh', null, { .post('/auth/token/refresh', null, {
withCredentials: true, withCredentials: true,
baseURL: location.pathname,
}) })
.then((token) => { .then((token) => {
// New request with new token // New request with new token

Loading…
Cancel
Save