Skip to content

Commit e1009c5

Browse files
committed
feat: Cors 5173 포트 열어두기
1 parent b0c541d commit e1009c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/unionmate/gateway_service/global/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class SecurityConfig {
1414
@Bean
1515
public CorsWebFilter corsWebFilter() {
1616
CorsConfiguration config = new CorsConfiguration();
17-
config.setAllowedOrigins(List.of("http://localhost:3000"));
17+
config.setAllowedOrigins(List.of("http://localhost:3000", "http://localhost:5173"));
1818
config.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
1919
config.setAllowCredentials(true);
2020
config.setAllowedHeaders(List.of("*"));

0 commit comments

Comments
 (0)