diff --git a/Gathering_be/src/main/java/com/Gathering_be/global/config/SecurityConfig.java b/Gathering_be/src/main/java/com/Gathering_be/global/config/SecurityConfig.java index 5be2d87..b4e430c 100644 --- a/Gathering_be/src/main/java/com/Gathering_be/global/config/SecurityConfig.java +++ b/Gathering_be/src/main/java/com/Gathering_be/global/config/SecurityConfig.java @@ -67,7 +67,7 @@ public SecurityFilterChain swaggerFilterChain(HttpSecurity http) throws Exceptio public SecurityFilterChain apiFilterChain(HttpSecurity httpSecurity) throws Exception { return httpSecurity .csrf(AbstractHttpConfigurer::disable) - .cors(cors -> cors.configure(httpSecurity)) + .cors(Customizer.withDefaults()) .formLogin(AbstractHttpConfigurer::disable) .httpBasic(AbstractHttpConfigurer::disable) .authorizeHttpRequests(authorizeRequest ->