diff --git a/src/utils.ts b/src/utils.ts index 874b45c..33caec7 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -30,7 +30,7 @@ export function urlPath(path: string): string { export async function getJSON(url: string,requestOptions?: RequestInit): Promise { if(!requestOptions){ - requestOptions = {credentials: 'include'} + requestOptions = {credentials: 'same-origin'} } const res = await fetch(url,requestOptions); return res.json();