From ac48d4382717ed587d84671064c45140963d3f51 Mon Sep 17 00:00:00 2001 From: Daniel McCrystal Date: Sun, 17 Aug 2025 20:33:14 -0400 Subject: [PATCH] less restrictive cors --- Makefile | 1 + packages/server/src/index.ts | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index b05c82e..e567bd4 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ build: pnpm install pnpm run -F client build pnpm run -F server dbdeploy + pnpm run -F server dbtypes start: PORT=$(PORT) pnpm start diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts index ebdcfea..7e96f76 100644 --- a/packages/server/src/index.ts +++ b/packages/server/src/index.ts @@ -6,12 +6,7 @@ import { staticPlugin } from "@elysiajs/static"; const port = env.PORT || 5001; const app = new Elysia() - .use( - cors({ - origin: "http://localhost:3000", - credentials: true, - }) - ) + .use(cors()) .onRequest(({ request }) => { console.log(request.method, request.url); })