mirror of
				https://github.com/suyiiyii/SIMS.git
				synced 2025-11-04 15:54:52 +08:00 
			
		
		
		
	feat(cors): 允许option请求通过
This commit is contained in:
		
							parent
							
								
									b7afe430d3
								
							
						
					
					
						commit
						f867d7b7bc
					
				@ -27,6 +27,9 @@ public class RbacInterceptor implements HandlerInterceptor {
 | 
				
			|||||||
        if ("/error".equals(request.getRequestURI())) {
 | 
					        if ("/error".equals(request.getRequestURI())) {
 | 
				
			||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        if ("OPTIONS".equals(request.getMethod())) {
 | 
				
			||||||
 | 
					            return true;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        // 获取用户角色
 | 
					        // 获取用户角色
 | 
				
			||||||
        List<String> roles = getUserRole(request).stream().map(Role::getRoleName).toList();
 | 
					        List<String> roles = getUserRole(request).stream().map(Role::getRoleName).toList();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user