Skip to content

Commit 2c276d1

Browse files
committed
Set cors
1 parent c135b13 commit 2c276d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ import * as cookieParser from 'cookie-parser';
77

88
async function bootstrap() {
99
const app = await NestFactory.create(AppModule);
10-
1110
// set CORS
12-
app.enableCors();
11+
app.enableCors({
12+
origin: '*',
13+
});
1314
// set swagger module
1415
const config = new DocumentBuilder()
1516
.setTitle('Meta Test API')

0 commit comments

Comments
 (0)