diff --git a/src/main/java/com/example/likelion12/config/SecurityConfig.java b/src/main/java/com/example/likelion12/config/SecurityConfig.java index 5d64c5c..150bb56 100644 --- a/src/main/java/com/example/likelion12/config/SecurityConfig.java +++ b/src/main/java/com/example/likelion12/config/SecurityConfig.java @@ -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); // 자격 증명 허용 설정