diff --git a/backend/src/main.ts b/backend/src/main.ts index 8434588c091ed9d7bf274c7daceac28a50dcdff0..a45b1c900f0fc73573ca0ff2d1c19fa595d125c3 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -21,6 +21,7 @@ async function bootstrap() { .build(); const document = SwaggerModule.createDocument(app, config); SwaggerModule.setup('api', app, document); + app.enableCors(); await app.listen(ServerConstants.PORT); console.log(`Application is running on: ${await app.getUrl()}`); console.log(`API documentation at: ${await app.getUrl()}/api`);