Browse Source

fix: use same domain with refresh token api

pull/7444/head
Pranav C 11 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
.post('/auth/token/refresh', null, {
withCredentials: true,
baseURL: location.pathname,
})
.then((token) => {
// New request with new token

Loading…
Cancel
Save