feat: cors

This commit is contained in:
Max Koon
2025-10-20 15:33:26 -04:00
parent 1b841c7d32
commit 3ea28db9ac

View File

@@ -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,