Skip to content

Commit

Permalink
Enabled CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpetro committed Feb 4, 2024
1 parent 7d1b6b0 commit 16e5646
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 @@ -3,6 +3,7 @@ import { AppModule } from '@/app.module'

async function bootstrap() {
const app = await NestFactory.create(AppModule)
app.enableCors()
await app.listen(3000)
}
bootstrap()

0 comments on commit 16e5646

Please sign in to comment.