diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index f2d0b27..af0fc9e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -33,7 +33,7 @@ }); const fetchStatusData = () => { - fetch(`${PUBLIC_BASE_URL}/api/status`) + fetch(`${PUBLIC_BASE_URL}/api/status`, { credentials: 'same-origin' }) .then((res) => res.json()) .then((data) => { status.set(data); @@ -41,7 +41,7 @@ }; const fetchSettingsData = () => { - fetch(PUBLIC_BASE_URL + `/api/settings`) + fetch(PUBLIC_BASE_URL + `/api/settings`, { credentials: 'same-origin' }) .then((res) => res.json()) .then((data) => { data.fgColor = String(data.fgColor);