提交者
Gitee
update ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java.
修改注释,CRSF禁用
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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() |
-
请 注册 或 登录 后发表评论