update ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java.

修改注释,CRSF禁用
This commit is contained in:
Lyy 2020-08-17 17:05:33 +08:00 committed by Gitee
parent d596d5bb8e
commit 4f7702b22a
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
protected void configure(HttpSecurity httpSecurity) throws Exception
{
httpSecurity
// CRSF禁用因为不使用session
// CSRF禁用因为不使用session
.csrf().disable()
// 认证失败处理类
.exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and()