feat: disable cors

This commit is contained in:
Max Koon
2025-10-20 15:19:59 -04:00
parent 38739a3a0c
commit b0ebc98d42

View File

@@ -10,7 +10,7 @@ const app = getHono();
app.use( app.use(
"/api/*", "/api/*",
cors({ cors({
origin: (origin) => origin ?? "", origin: "*",
allowMethods: ["POST", "GET", "OPTIONS"], allowMethods: ["POST", "GET", "OPTIONS"],
allowHeaders: ["Content-Type", "Authorization"], allowHeaders: ["Content-Type", "Authorization"],
credentials: true, credentials: true,