From 8226a75bf564081a31887b59ab246262b35a9527 Mon Sep 17 00:00:00 2001 From: Alexander Shestakov Date: Sat, 31 May 2025 17:20:04 +0300 Subject: [PATCH] added missing cors line to bootstrap file --- src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.ts b/src/main.ts index fc6d947..941abc1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -59,6 +59,8 @@ async function bootstrap() { app.useGlobalFilters(new PrismaClientExceptionFilter()); + app.enableCors(); + await app.listen(process.env.PORT ?? 8393); }