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))