From 489d13b2b039d7c6c6129064aff3292cbf74db3f Mon Sep 17 00:00:00 2001 From: Vladik Date: Fri, 6 Sep 2024 22:07:24 +0300 Subject: [PATCH] refactor: SecurityFilterConfig.java --- .../com/chat/yourway/config/security/SecurityFilterConfig.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/chat/yourway/config/security/SecurityFilterConfig.java b/src/main/java/com/chat/yourway/config/security/SecurityFilterConfig.java index 1cd3ec6..4948ad9 100644 --- a/src/main/java/com/chat/yourway/config/security/SecurityFilterConfig.java +++ b/src/main/java/com/chat/yourway/config/security/SecurityFilterConfig.java @@ -33,7 +33,6 @@ public SecurityFilterChain filterChain(HttpSecurity httpSecurity) throws Excepti .csrf(AbstractHttpConfigurer::disable) .authorizeHttpRequests(auth -> auth .requestMatchers(WHITELIST_URLS).permitAll() - .requestMatchers("/demo-controller").hasAuthority("USER") .anyRequest().authenticated() ) .sessionManagement(sess -> sess.sessionCreationPolicy(SessionCreationPolicy.STATELESS))