.requestMatchers(/ws/contador/**).permitAll() // permitir WS sin auth
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled

This commit is contained in:
2025-10-01 17:42:23 -04:00
parent 2f9142e1b5
commit 0f680250da

View File

@@ -37,7 +37,8 @@ public class SecurityConfig {
.csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(auth -> auth
.requestMatchers("/auth/**").permitAll()
.requestMatchers("/favicon.ico", "/error", "/static/**", "/ws/contador/**", "contador/**", "/api/**").permitAll()
.requestMatchers("/favicon.ico", "/error", "/static/**","contador/**", "/api/**").permitAll()
.requestMatchers("/ws/contador/**").permitAll() // permitir WS sin auth
.requestMatchers("/admin/**").hasAnyAuthority("SUPER_USUARIO","ADMIN")
.anyRequest().authenticated()
)