fix(gateway): enable CORS for HTTP endpoints

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jiayuan Zhang 2026-02-14 00:42:29 +08:00
parent 005908710e
commit a7629db01e

View file

@ -12,6 +12,7 @@ async function bootstrap(): Promise<void> {
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}...`);