fix: remove credentials: 'include' from fetch requests

This commit is contained in:
Alaister Young authored and Joshen Lim committed 2023-02-21 13:58:31 +08:00
1 parent 418a50a734
commit 6a2ad6fcfb
5 files changed
-7

No files matched your search

-1
View File
@@ -14,7 +14,6 @@ export async function delete_<T = any>(
const response = await fetch(url, {
method: 'DELETE',
body: JSON.stringify(data),
credentials: 'include',
referrerPolicy: 'no-referrer-when-downgrade',
headers,
...otherOptions,
-2
View File
@@ -12,7 +12,6 @@ export async function get<T = any>(
const headers = await constructHeaders(requestId, optionHeaders)
const response = await fetch(url, {
method: 'GET',
credentials: 'include',
referrerPolicy: 'no-referrer-when-downgrade',
headers,
...otherOptions,
@@ -37,7 +36,6 @@ export async function getWithTimeout<T = any>(
const headers = await constructHeaders(requestId, optionHeaders)
const response = await fetch(url, {
method: 'GET',
credentials: 'include',
referrerPolicy: 'no-referrer-when-downgrade',
headers,
...otherOptions,
-2
View File
@@ -13,7 +13,6 @@ export async function head<T = any>(
const headers = await constructHeaders(requestId, optionHeaders)
const response = await fetch(url, {
method: 'HEAD',
credentials: 'include',
referrerPolicy: 'no-referrer-when-downgrade',
headers,
...otherOptions,
@@ -39,7 +38,6 @@ export async function headWithTimeout<T = any>(
const headers = await constructHeaders(requestId, optionHeaders)
const response = await fetch(url, {
method: 'HEAD',
credentials: 'include',
referrerPolicy: 'no-referrer-when-downgrade',
headers,
...otherOptions,
-1
View File
@@ -14,7 +14,6 @@ export async function patch<T = any>(
const response = await fetch(url, {
method: 'PATCH',
body: JSON.stringify(data),
credentials: 'include',
referrerPolicy: 'no-referrer-when-downgrade',
headers,
...otherOptions,
-1
View File
@@ -14,7 +14,6 @@ export async function post<T = any>(
const response = await fetch(url, {
method: 'POST',
body: JSON.stringify(data),
credentials: 'include',
referrerPolicy: 'no-referrer-when-downgrade',
headers,
...otherOptions,