fix: add production domain to CORS whitelist
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
zyc 2026-04-13 18:52:54 +08:00
parent 7b8f4331f6
commit b8ecaf44d0

View File

@ -20,7 +20,7 @@ const app = new Hono();
// Global middleware // Global middleware
app.use('*', cors({ app.use('*', cors({
origin: ['http://localhost:5173', 'http://localhost:3201'], origin: ['http://localhost:5173', 'http://localhost:3201', 'https://devperf.airlabs.art'],
allowMethods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], allowMethods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
allowHeaders: ['Content-Type', 'Authorization'], allowHeaders: ['Content-Type', 'Authorization'],
})); }));