diff --git a/src/main/java/top/suyiiyii/sims/common/RbacInterceptor.java b/src/main/java/top/suyiiyii/sims/common/RbacInterceptor.java index cafd2b4..6978679 100644 --- a/src/main/java/top/suyiiyii/sims/common/RbacInterceptor.java +++ b/src/main/java/top/suyiiyii/sims/common/RbacInterceptor.java @@ -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 roles = getUserRole(request).stream().map(Role::getRoleName).toList();