Skip to content

Commit

Permalink
Set cors
Browse files Browse the repository at this point in the history
  • Loading branch information
youngxdev committed Apr 6, 2024
1 parent c135b13 commit 2c276d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import * as cookieParser from 'cookie-parser';

async function bootstrap() {
const app = await NestFactory.create(AppModule);

// set CORS
app.enableCors();
app.enableCors({
origin: '*',
});
// set swagger module
const config = new DocumentBuilder()
.setTitle('Meta Test API')
Expand Down

0 comments on commit 2c276d1

Please sign in to comment.