Skip to content

Commit

Permalink
Added annotation for method SecurityFilterConfig.filterChain
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladik-gif committed Oct 25, 2024
1 parent 2062efe commit 098886f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.chat.yourway.security.JwtAuthFilter;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationProvider;
Expand All @@ -27,7 +28,8 @@ public class SecurityFilterConfig {
private final SecurityCorsConfig securityCorsConfig;

@Bean
public SecurityFilterChain filterChain(HttpSecurity httpSecurity) throws Exception {
@SneakyThrows
public SecurityFilterChain filterChain(HttpSecurity httpSecurity) {
return httpSecurity
.cors(cors -> securityCorsConfig.corsConfigurationSource())
.csrf(AbstractHttpConfigurer::disable)
Expand Down

0 comments on commit 098886f

Please sign in to comment.