From 66e4649d5fafa259d29e089cb1bb4c3e1fe78790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Fri, 12 Apr 2024 10:20:03 -0600 Subject: [PATCH] habilitando cors --- backend/src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main.ts b/backend/src/main.ts index 8434588c..a45b1c90 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`); -- GitLab