From 2e43f09636e54d256d355dd74bded9a0f7581036 Mon Sep 17 00:00:00 2001 From: Pavel Mineev Date: Thu, 4 Feb 2021 22:02:46 +0300 Subject: [PATCH] Revert "send cookie with request" This reverts commit 656ab8438105bb83a3c2926baf8f94a4e33817da. --- frontend/app/common/fetcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/common/fetcher.ts b/frontend/app/common/fetcher.ts index 07f0e62c..71bc9aca 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, credentials: 'same-origin', mode: 'same-origin' }); + const res = await fetch(url, { ...params, headers }); // 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);