From a7629db01ee5fe443d4d116cdb866fe01c0bfeac Mon Sep 17 00:00:00 2001 From: Jiayuan Zhang Date: Sat, 14 Feb 2026 00:42:29 +0800 Subject: [PATCH] fix(gateway): enable CORS for HTTP endpoints Co-Authored-By: Claude Opus 4.6 --- apps/gateway/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/gateway/main.ts b/apps/gateway/main.ts index 02a9a017..ec5f40fd 100644 --- a/apps/gateway/main.ts +++ b/apps/gateway/main.ts @@ -12,6 +12,7 @@ async function bootstrap(): Promise { console.log("[Gateway] NestFactory created"); app.useLogger(app.get(Logger)); + app.enableCors(); const port = process.env["PORT"] ?? 3000; console.log(`[Gateway] Listening on port ${port}...`);