Skip to content

Commit

Permalink
Merge pull request #39 from 1223v/test
Browse files Browse the repository at this point in the history
Fix: security 헤더 수정
  • Loading branch information
1223v authored Nov 20, 2023
2 parents 4f3c185 + c404f06 commit 40f776d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ CorsConfigurationSource corsConfigurationSource() {
//configuration.setAllowedMethods(Arrays.asList("*")); // 모든 HTTP 메서드 허용
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOriginPatterns(Arrays.asList("*")); // 변경된 설정
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "OPTIONS"));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "OPTIONS", "DELETE", "PUT", "PATCH"));
configuration.setAllowedHeaders(Arrays.asList("*"));
configuration.setAllowCredentials(true);

Expand Down

0 comments on commit 40f776d

Please sign in to comment.