From b8ecaf44d00449f4be9a4be033a70deda406ec62 Mon Sep 17 00:00:00 2001 From: zyc <1439655764@qq.com> Date: Mon, 13 Apr 2026 18:52:54 +0800 Subject: [PATCH] fix: add production domain to CORS whitelist --- backend/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 8bc0f05..89ef9c1 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -20,7 +20,7 @@ const app = new Hono(); // Global middleware 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'], allowHeaders: ['Content-Type', 'Authorization'], }));