From 91a5b679f99e0ec8465415c48d0ca04bb3d151a3 Mon Sep 17 00:00:00 2001
From: Aleksei Lunin <alexey.lunin@vereign.com>
Date: Wed, 1 Nov 2023 02:42:03 +0300
Subject: [PATCH] add cors to the agent

---
 apps/agent/src/main.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/agent/src/main.ts b/apps/agent/src/main.ts
index c90dec25..483fd06f 100644
--- a/apps/agent/src/main.ts
+++ b/apps/agent/src/main.ts
@@ -12,6 +12,7 @@ import * as fs from "fs";
 
 async function bootstrap() {
   const app = await NestFactory.create(AppModule);
+  app.enableCors();
   const globalPrefix = "api";
   app.setGlobalPrefix(globalPrefix);
   const port = process.env.AGENT_PORT || 3001;
-- 
GitLab