Skip to content

Commit b8ca5be

Browse files
authored
Merge pull request #290 from PharmQuest/dev
2025-02-19 update Config 메서드(PATCH) 추가
2 parents 36c5e27 + 4ebcd34 commit b8ca5be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/pharmquest/pharmquest/global/config/CorsConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ public void addCorsMappings(CorsRegistry registry) {
2626
}
2727
};
2828
}
29-
}
29+
}

src/main/java/com/pharmquest/pharmquest/global/config/SecurityConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ CorsConfigurationSource corsConfigurationSource() {
4545
));
4646
config.setAllowedHeaders(List.of("*"));
4747
config.setExposedHeaders(List.of("Authorization"));
48-
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
48+
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"));
4949
config.setAllowCredentials(true);
5050

5151
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
@@ -75,4 +75,4 @@ public SecurityFilterChain filterChain(HttpSecurity httpSecurity) throws Excepti
7575

7676

7777

78-
}
78+
}

0 commit comments

Comments
 (0)