We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9feee6a commit fb7f09bCopy full SHA for fb7f09b
backend/src/main.ts
@@ -24,6 +24,8 @@ async function bootstrap() {
24
.build();
25
const document = SwaggerModule.createDocument(app, config);
26
SwaggerModule.setup('swagger/api', app, document);
27
+
28
+ app.enableCors();
29
await app.listen(PORT, () => {
30
console.log(`Running API in MODE: ${process.env.NODE_ENV} on port ${PORT}`);
31
});
0 commit comments