mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 02:15:05 +03:00
fix: remove credentials: 'include' from fetch requests
This commit is contained in:
1 parent
418a50a734
commit
6a2ad6fcfb
5 files changed
-7
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user