From 437326105e663c0bd6afde3302d0424d0c1e68ef Mon Sep 17 00:00:00 2001 From: dleo9307 Date: Sun, 3 Jan 2021 00:03:24 +0900 Subject: [PATCH] =?UTF-8?q?cors=20=EC=85=8B=ED=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 1464658..065ad04 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,7 +5,7 @@ import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; async function bootstrap() { const app: INestApplication = await NestFactory.create(AppModule); - + app.enableCors(); const options: any = new DocumentBuilder() .setTitle('Muscular API') .setDescription('Muscular API Document')