diff --git a/frontend/app/api_client.ts b/frontend/app/api_client.ts index 42ddcd1d3..7ba2e3e39 100644 --- a/frontend/app/api_client.ts +++ b/frontend/app/api_client.ts @@ -154,6 +154,12 @@ export default class APIClient { edp = `${edp}/${this.siteId}`; } + if (path.includes('login') || path.includes('refresh') || path.includes('logout')) { + init.credentials = 'include'; + } else { + delete init.credentials; + } + return fetch(edp + path, init).then((response) => { if (response.ok) { return response;