Commit f89181b3 by Patryk Czarnik

.anyRequest().authenticated() - tak jak w ustawieniach domyślnych

parent b1a97377
......@@ -11,7 +11,9 @@ public class SecurityConfig {
@Bean
SecurityFilterChain setHttpSecurity(HttpSecurity httpSecurity) throws Exception {
httpSecurity.authorizeHttpRequests()
.anyRequest().permitAll()
.anyRequest().authenticated()
.and()
.formLogin()
;
return httpSecurity.build();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment