diff --git a/frontend/app/common/fetcher.ts b/frontend/app/common/fetcher.ts index 71bc9aca..07f0e62c 100644 --- a/frontend/app/common/fetcher.ts +++ b/frontend/app/common/fetcher.ts @@ -58,7 +58,7 @@ const createFetcher = (baseUrl: string = ''): Methods => { } try { - const res = await fetch(url, { ...params, headers }); + const res = await fetch(url, { ...params, headers, credentials: 'same-origin', mode: 'same-origin' }); // TODO: it should be clarified when frontend gets this header and what could be in it to simplify this logic and cover by tests const date = (res.headers.has('date') && res.headers.get('date')) || ''; const timestamp = isNaN(Date.parse(date)) ? 0 : Date.parse(date);