Skip to content

Commit 8d59823

Browse files
committed
fix: SPA config
1 parent 12f6550 commit 8d59823

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/com/example/backend/config/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public CorsConfigurationSource corsConfigurationSource() {
7575
"http://localhost:5174",
7676
"http://127.0.0.1:5174",
7777
"http://localhost:6500",
78-
"https://hotelhub.store"
78+
"https://www.hotelhub.store"
7979
));
8080
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
8181
config.setAllowedHeaders(List.of("*"));

src/main/java/com/example/backend/config/WebConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public void addCorsMappings(CorsRegistry registry) {
2323
"http://localhost:8080", // Vue CLI 기본 포트
2424
"http://localhost:8889",
2525
"http://localhost:7000",// 관리자 페이지 포트
26-
"http://localhost:6500"// 사업자 페이지 포트
26+
"http://localhost:6500",// 사업자 페이지 포트
27+
"https://www.hotelhub.store"
2728
)
2829
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
2930
.allowedHeaders("*")

0 commit comments

Comments
 (0)