Skip to content

Commit

Permalink
feat : cors 설정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jsilver01 committed Aug 5, 2024
1 parent 3780325 commit d393896
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(Arrays.asList("http://example.com")); // 허용할 도메인 설정
configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000")); // 허용할 도메인 설정
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE")); // 허용할 HTTP 메서드 설정
configuration.setAllowedHeaders(Arrays.asList("*")); // 허용할 헤더 설정
configuration.setAllowCredentials(true); // 자격 증명 허용 설정
Expand Down

0 comments on commit d393896

Please sign in to comment.