Skip to content

Commit cedd373

Browse files
committed
fix : gateway cors
1 parent 4f21577 commit cedd373

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

gateway/src/main/java/com/joketdan/gateway/config/GatewayConfig.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ public CorsWebFilter corsWebFilter() {
2222
config.setAllowedOriginPatterns(List.of(
2323
"http://localhost:5173",
2424
"http://localhost:*", // 개발 환경용
25-
"https://yourdomain.com" // 프로덕션 도메인 추가
25+
"http://babo-gateway-9b000-111745921-fc4e54155745.kr.lb.naverncp.com", // 프로덕션 도메인 추가,
26+
"http://*.kr.lb.naverncp.com"
27+
2628
));
2729

2830
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"));
@@ -47,4 +49,5 @@ public CorsWebFilter corsWebFilter() {
4749

4850
return new CorsWebFilter(source);
4951

50-
}}
52+
}
53+
}

0 commit comments

Comments
 (0)