Skip to content

Commit

Permalink
feat: enable cors
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmelogm committed Jan 5, 2024
1 parent f459b11 commit dd8e0fb
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 @@ -5,6 +5,7 @@ import { AppModule } from './app.module'

async function bootstrap() {
const app = await NestFactory.create(AppModule)
app.enableCors()
app.useGlobalPipes(
new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true }),
)
Expand Down

0 comments on commit dd8e0fb

Please sign in to comment.