fix
This commit is contained in:
@@ -151,6 +151,8 @@ public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
|
|||||||
|
|
||||||
// 禁用CSRF
|
// 禁用CSRF
|
||||||
// http.csrf().disable();
|
// http.csrf().disable();
|
||||||
|
http.csrf(c -> c.ignoringAntMatchers("/login")) // 登录接口免 CSRF
|
||||||
|
;
|
||||||
http.headers().frameOptions().deny();
|
http.headers().frameOptions().deny();
|
||||||
http.headers().xssProtection().block(true);
|
http.headers().xssProtection().block(true);
|
||||||
http.headers().contentTypeOptions();
|
http.headers().contentTypeOptions();
|
||||||
|
|||||||
Reference in New Issue
Block a user