Skip to content

Commit 0637b39

Browse files
authored
Merge pull request #164 from dnd-side-project/refactor/first-sprint
feat(CorsConfig): CORS 오리진 추가
2 parents 77cf3c2 + 2a28d0b commit 0637b39

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

api-server/src/main/java/com/example/demo/global/cors/WebFluxCorsConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public CorsWebFilter corsWebFilter() {
2020
"http://localhost:5173",
2121
"https://deulak-dev.vercel.app",
2222
"https://deulak.com",
23-
"http://192.168.0.9:5173"
23+
"http://192.168.0.9:5173",
24+
"http://192.168.0.10:5173"
2425
));
2526
config.setAllowedMethods(List.of("GET","POST","PUT","PATCH","DELETE","OPTIONS"));
2627
config.setAllowedHeaders(List.of("*"));

chat-server/src/main/java/com/example/demo/global/cors/WebMvcCorsConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public void addCorsMappings(CorsRegistry registry) {
1414
"http://localhost:5173",
1515
"https://deulak-dev.vercel.app",
1616
"https://deulak.com",
17-
"http://192.168.0.9:5173"
17+
"http://192.168.0.9:5173",
18+
"http://192.168.0.10:5173"
1819
)
1920
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
2021
.allowedHeaders("*")

main-server/src/main/java/com/example/demo/global/cors/WebMvcCorsConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public void addCorsMappings(CorsRegistry registry) {
1414
"http://localhost:5173",
1515
"https://deulak-dev.vercel.app",
1616
"https://deulak.com",
17-
"http://192.168.0.9:5173"
17+
"http://192.168.0.9:5173",
18+
"http://192.168.0.10:5173"
1819
)
1920
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
2021
.allowedHeaders("*")

0 commit comments

Comments
 (0)