From 3ea28db9ac6e7667c18f6bb6e68ee14a2df0ec2e Mon Sep 17 00:00:00 2001 From: Max Koon <22125083+k2on@users.noreply.github.com> Date: Mon, 20 Oct 2025 15:33:26 -0400 Subject: [PATCH] feat: cors --- api/src/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/src/index.ts b/api/src/index.ts index 29deeac..66f4964 100644 --- a/api/src/index.ts +++ b/api/src/index.ts @@ -10,10 +10,7 @@ const app = getHono(); app.use( "/api/*", cors({ - origin: (origin) => - origin && /^https:\/\/([a-z0-9-]+\.)?koon\.us$/.test(origin) - ? origin - : "", + origin: 'https://money.koon.us', allowMethods: ["POST", "GET", "OPTIONS"], allowHeaders: ["Content-Type", "Authorization"], credentials: true,