Skip to content

Commit fb7f09b

Browse files
committed
fix: added cors
1 parent 9feee6a commit fb7f09b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ async function bootstrap() {
2424
.build();
2525
const document = SwaggerModule.createDocument(app, config);
2626
SwaggerModule.setup('swagger/api', app, document);
27+
28+
app.enableCors();
2729
await app.listen(PORT, () => {
2830
console.log(`Running API in MODE: ${process.env.NODE_ENV} on port ${PORT}`);
2931
});

0 commit comments

Comments
 (0)