From 4228536fe6a0fc837d18e94ddae70279bbe25fdb Mon Sep 17 00:00:00 2001 From: wil Date: Wed, 3 Apr 2024 16:43:41 -0400 Subject: [PATCH] cors fix --- app/contexts/Authentication/utilities.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/contexts/Authentication/utilities.tsx b/app/contexts/Authentication/utilities.tsx index ccd7915e30..ea58026e0a 100644 --- a/app/contexts/Authentication/utilities.tsx +++ b/app/contexts/Authentication/utilities.tsx @@ -26,6 +26,7 @@ export const CreateSession = async ({ headers: { "Accept": "application/json", "Content-Type": "application/json", + 'Access-Control-Allow-Origin': '*', }, credentials: 'include', body: JSON.stringify(request) @@ -44,6 +45,7 @@ export const GetSession = async () => { method: 'GET', headers: { 'Accept': 'application/json', + 'Access-Control-Allow-Origin': '*', }, credentials: 'include', }) @@ -64,6 +66,7 @@ export async function DestroySession() : Promise { method: 'POST', headers: { 'Accept': 'application/json', + 'Access-Control-Allow-Origin': '*', }, credentials: 'include', })