作者 Lyy
提交者 Gitee

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

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