http.httpBasic().and().csrf().disable().authorizeRequests() .antMatchers("/", "/webjars/**", "/img/**", "/css/**").permitAll().antMatchers("/user/**") .hasAnyRole("ADMIN", "USER", "MODERATOR").antMatchers("/admin/**").hasRole("ADMIN").and().logout() .logoutRequestMatcher(new AntPathRequestMatcher("/logout")).logoutSuccessUrl("/").and().formLogin() .loginPage("/login").failureUrl("/login?error"); Ktoś jest mi w stanie wyjaśnić dlaczego czasami dostaje okno takie jak na obrazku, a czasami dostaje ekran do logowania(localhost/login)?
Config
http.httpBasic().and().csrf().disable().authorizeRequests().antMatchers("/", "/webjars/**", "/img/**", "/css/**").permitAll().antMatchers("/user/**").hasAnyRole("ADMIN", "USER", "MODERATOR").antMatchers("/admin/**").hasRole("ADMIN").and().logout().logoutRequestMatcher(new AntPathRequestMatcher("/logout")).logoutSuccessUrl("/").and().formLogin().loginPage("/login").failureUrl("/login?error");
Ktoś jest mi w stanie wyjaśnić dlaczego czasami dostaje okno takie jak na obrazku, a czasami dostaje ekran do logowania(localhost/login)?
#java
źródło: comment_BnXx1MJmvYe0b9EyV40epZ95lS7f14Pn.jpg
Pobierz@robie_bota: czasami, czyli np. co 10 wciśnięcie F5? Czy może randomowo? Czy może jak dobijasz się do innych urli?
Komentarz usunięty przez autora
Komentarz usunięty przez autora