diff --git a/src/main/java/com/app/config/SecurityConfig.java b/src/main/java/com/app/config/SecurityConfig.java index 710b18c..291c679 100644 --- a/src/main/java/com/app/config/SecurityConfig.java +++ b/src/main/java/com/app/config/SecurityConfig.java @@ -62,7 +62,7 @@ SecurityFilterChain securityFilterChain(HttpSecurity http, AuthenticationManager //es creado dentro de esta clase jwtAuthenticationFilter.setAuthenticationManager(authenticationManager); //Se configura el endpoint para autenticarse - jwtAuthenticationFilter.setFilterProcessesUrl("/login"); + jwtAuthenticationFilter.setFilterProcessesUrl("/auth/login"); return http // Se deshabilita Cross-site request forgery