diff --git a/src/main/java/com/efub/dhs/global/config/SecurityConfig.java b/src/main/java/com/efub/dhs/global/config/SecurityConfig.java index fccf57e..96ca749 100644 --- a/src/main/java/com/efub/dhs/global/config/SecurityConfig.java +++ b/src/main/java/com/efub/dhs/global/config/SecurityConfig.java @@ -32,6 +32,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and() .authorizeRequests() + .antMatchers(HttpMethod.OPTIONS).permitAll() .antMatchers("/programs/created", "/programs/liked", "/programs/registered", @@ -39,7 +40,6 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws "/auth/logout").authenticated() .antMatchers("/auth/**", "/oauth/**").permitAll() .antMatchers(HttpMethod.GET).permitAll() - .antMatchers(HttpMethod.OPTIONS).permitAll() .anyRequest().authenticated() .and() .addFilterBefore(new JwtFilter(jwtAuthProvider), UsernamePasswordAuthenticationFilter.class)