Skip to content

Commit e702fdf

Browse files
authored
Merge pull request #10 from DevKor-github/dev
fix: cors 5173, whend 추가
2 parents 8f17612 + 280b883 commit e702fdf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/com/workingdead/config/CorsConfig.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ public CorsConfigurationSource corsConfigurationSource() {
1515
"http://localhost:3000",
1616
"http://localhost:8081",
1717
"http://localhost:8080",
18-
"http://10.0.2.2:8080"
18+
"http://10.0.2.2:8080",
19+
"http://localhost:5173",
20+
"http://whend.app",
21+
"https://whend.app"
1922
));
2023
config.setAllowedMethods(List.of("GET","POST","PUT","PATCH","DELETE","OPTIONS"));
2124
config.setAllowedHeaders(List.of("*"));
2225
config.setExposedHeaders(List.of("Authorization", "Content-Type"));
2326
config.setAllowCredentials(true);
2427
config.setMaxAge(3600L);
28+
2529
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
2630
source.registerCorsConfiguration("/**", config);
2731
return source;

0 commit comments

Comments
 (0)