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 6867d86 commit c2c8d40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ async function bootstrap() {
const config: ConfigService<Config> = app.get(ConfigService);

app.enableCors({
allowedHeaders: 'Content-Type, Accept',
origin: true,
});

Expand Down

0 comments on commit c2c8d40

Please sign in to comment.