Skip to content

Commit

Permalink
fix(app): enable cors
Browse files Browse the repository at this point in the history
  • Loading branch information
elijaholmos committed Apr 19, 2023
1 parent a7c8650 commit 7666a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function initializeApp(
}: { logger?: false | LoggerService | LogLevel[]; abortOnError?: boolean } = {},
) {
app = await NestFactory.create(AppModule, { logger, abortOnError });

app.enableCors();
await app.listen(PORT);

return app.getHttpServer().address();
Expand Down

0 comments on commit 7666a1e

Please sign in to comment.