From c2c8d409ce0424a7840f872efd467c63345ff3b2 Mon Sep 17 00:00:00 2001 From: Zaur Abdulgalimov Date: Thu, 20 Jul 2023 17:43:55 +0300 Subject: [PATCH] enable cors --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index b0c14c1..03c696e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,6 +9,7 @@ async function bootstrap() { const config: ConfigService = app.get(ConfigService); app.enableCors({ + allowedHeaders: 'Content-Type, Accept', origin: true, });