diff --git a/apps/frontend/src/app/atoms/client.ts b/apps/frontend/src/app/atoms/client.ts index 791bf55..dc08174 100644 --- a/apps/frontend/src/app/atoms/client.ts +++ b/apps/frontend/src/app/atoms/client.ts @@ -84,6 +84,7 @@ export const eventStreamAtom = atom( Accept: "text/event-stream", }, signal: newController.signal, + mode: "no-cors", }); if (!response.ok) { diff --git a/apps/frontend/src/app/routes/mock.tsx b/apps/frontend/src/app/routes/mock.tsx index 07b8584..d961841 100644 --- a/apps/frontend/src/app/routes/mock.tsx +++ b/apps/frontend/src/app/routes/mock.tsx @@ -76,6 +76,7 @@ export default function Page() { headers: { "Content-Type": "application/json", }, + mode: "no-cors", body: JSON.stringify({ widthRandom: randomWidth, heightRandom: randomHeight, diff --git a/apps/solver/src/features/ui-comm/index.ts b/apps/solver/src/features/ui-comm/index.ts index e651c4b..230eb16 100644 --- a/apps/solver/src/features/ui-comm/index.ts +++ b/apps/solver/src/features/ui-comm/index.ts @@ -26,13 +26,7 @@ app.use( app.use( cors({ - origin: (origin) => { - if (isDevelopment) { - return origin; - } - - return origin.endsWith("data-maki.pages.dev") ? origin : ""; - }, + origin: (origin) => origin, }), ); diff --git a/bun.lockb b/bun.lockb index 55fd17e..b88fbd7 100755 Binary files a/bun.lockb and b/bun.lockb differ