Skip to content

Commit

Permalink
Fix: SecurityConfig의 cors 설정에 PATCH 메소드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJae-H authored Sep 12, 2024
1 parent 55438e7 commit a313b10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public CorsConfigurationSource corsConfigurationSource() {

config.setAllowedOriginPatterns(List.of("*"));

config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS"));
config.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"));
config.addExposedHeader("Access-Token");
config.addExposedHeader("Refresh-Token");
config.setAllowedHeaders(List.of("Authorization", "Cache-Control", "Content-Type", "Admin-Secret-Key"));
Expand Down

0 comments on commit a313b10

Please sign in to comment.