Skip to content

Commit a20b60b

Browse files
committed
[feat] cors 설정
1 parent 9e17dc3 commit a20b60b

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/main.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ async function bootstrap() {
1717
initializeTransactionalContext();
1818
const app = await NestFactory.create(AppModule);
1919
app.enableCors({
20-
// origin: [
21-
// // 'https://grafana.writon.co.kr',
22-
// // 'https://api.writon.co.kr',
23-
// // 'https://www.writon.co.kr',
24-
// ],
25-
origin: '*',
20+
origin: [
21+
'https://grafana.writon.co.kr',
22+
'https://api.writon.co.kr',
23+
'https://www.writon.co.kr',
24+
'localhost:5173',
25+
],
26+
//origin: '*',
2627
credentials: true,
2728
exposedHeaders: ['Authorization'], // * 사용할 헤더 추가.
2829
});

0 commit comments

Comments
 (0)