mirror of
				https://github.com/suyiiyii/SIMS.git
				synced 2025-11-04 15:54:52 +08:00 
			
		
		
		
	Revert "feat(cors): 暴力允许option请求通过"
This reverts commit 0fea9664f9bf7415085345419644ef3134806b3c.
This commit is contained in:
		
							parent
							
								
									fb37c59810
								
							
						
					
					
						commit
						6a0812b836
					
				@ -28,8 +28,7 @@ public class RbacInterceptor implements HandlerInterceptor {
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
        if ("OPTIONS".equals(request.getMethod())) {
 | 
			
		||||
            response.setStatus(HttpServletResponse.SC_OK);
 | 
			
		||||
            return false;
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
        // 获取用户角色
 | 
			
		||||
        List<String> roles = getUserRole(request).stream().map(Role::getRoleName).toList();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user