Skip to content

Commit ed073b8

Browse files
committed
🐛hotfix: cors HTTP Method 누락으로 인한 긴급 수정 작업
1 parent 8667adb commit ed073b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/team/wego/wegobackend/common/config/CorsConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void addCorsMappings(CorsRegistry registry) {
2020
"https://local.wego.monster",
2121
"https://local.wego.monster:3000"
2222
)
23-
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
23+
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
2424
.allowedHeaders("*")
2525
.allowCredentials(true)
2626
.maxAge(3600);

src/main/java/team/wego/wegobackend/common/security/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public CorsConfigurationSource corsConfigurationSource() {
7272
"https://api.wego.monster",
7373
"https://local.wego.monster",
7474
"https://local.wego.monster:3000"));
75-
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
75+
config.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "DELETE", "OPTIONS"));
7676
config.setAllowedHeaders(List.of("*"));
7777
config.setAllowCredentials(true);
7878

0 commit comments

Comments
 (0)