Revert "send cookie with request"

This reverts commit 656ab84381.
This commit is contained in:
Pavel Mineev
2021-02-04 13:09:59 -06:00
committed by Umputun
parent f515676a72
commit 2e43f09636
+1 -1
View File
@@ -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);