mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-10 21:19:00 +08:00
✨ Introducing new features. #2116 报表设计增加 spring security 安全控制
This commit is contained in:
1 parent
011d25de6b
commit
3306d08819
1 file changed
+2
-2
+2
-2
@@ -44,8 +44,8 @@ public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
|
||||
@SneakyThrows
|
||||
protected void configure(HttpSecurity http) {
|
||||
http.formLogin().loginPage("/login.html").loginProcessingUrl("/login").failureHandler(new LoginFailureHandler())
|
||||
.and().authorizeRequests().antMatchers("/login.html", "/login").permitAll().anyRequest().authenticated()
|
||||
.and().csrf().disable();
|
||||
.and().authorizeRequests().antMatchers("/login.html", "/login", "/actuator/**").permitAll().anyRequest()
|
||||
.authenticated().and().csrf().disable();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user