Skip to content

Commit

Permalink
enable cors
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulgalimov committed Jul 20, 2023
1 parent d08f3b7 commit af56fa9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ async function bootstrap() {
const app = await NestFactory.create(AppModule);
const config: ConfigService<Config> = app.get(ConfigService);

app.enableCors();

const port = config.get('port');
await app.listen(port);
console.log(`Application start on port: ${port}`);
Expand Down

0 comments on commit af56fa9

Please sign in to comment.