Commit 4f7702b22a715272e9210571c69b80b4eb89ef4f
Committed by
Gitee
1 parent
d596d5bb
update ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java.
修改注释,CRSF禁用
Showing
1 changed file
with
1 additions
and
1 deletions
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
| @@ -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() |