From e7687d5155dce6c894663bba7cce082d9b79f698 Mon Sep 17 00:00:00 2001 From: Aleksei Lunin <alexey.lunin@vereign.com> Date: Wed, 1 Nov 2023 11:40:59 +0300 Subject: [PATCH] enable cors --- apps/gateway/src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/gateway/src/main.ts b/apps/gateway/src/main.ts index d3a80672..61bd60b9 100644 --- a/apps/gateway/src/main.ts +++ b/apps/gateway/src/main.ts @@ -17,6 +17,7 @@ import * as fs from "fs"; async function bootstrap() { const app = await NestFactory.create(AppModule); + app.enableCors(); app.useWebSocketAdapter(new WsAdapter(app)); const configService = app.get(ConfigService); -- GitLab