mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-10-31 18:49:06 +08:00 
			
		
		
		
	update ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java.
修改注释,CRSF禁用
This commit is contained in:
		| @ -88,7 +88,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter | |||||||
|     protected void configure(HttpSecurity httpSecurity) throws Exception |     protected void configure(HttpSecurity httpSecurity) throws Exception | ||||||
|     { |     { | ||||||
|         httpSecurity |         httpSecurity | ||||||
|                 // CRSF禁用,因为不使用session |                 // CSRF禁用,因为不使用session | ||||||
|                 .csrf().disable() |                 .csrf().disable() | ||||||
|                 // 认证失败处理类 |                 // 认证失败处理类 | ||||||
|                 .exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and() |                 .exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and() | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Lyy
					Lyy