diff --git a/frontend/src/API/Fetch.js b/frontend/src/API/Fetch.js index 12aa042..ac3c95d 100644 --- a/frontend/src/API/Fetch.js +++ b/frontend/src/API/Fetch.js @@ -14,6 +14,7 @@ export default async function Fetch({ action, method, body }) { if (method === HttpMethod.GET) { data = await fetch(url, { method: "GET", + credentials: "same-origin", headers: headers, }) .then((response) => response.json()) @@ -27,6 +28,7 @@ export default async function Fetch({ action, method, body }) { } else { data = await fetch(url, { method: method, + credentials: "same-origin", headers: headers, body: body ? JSON.stringify(body) : "" })