From 6a0812b8369916a9751fd097c73634aa16b04bfe Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Thu, 29 Aug 2024 17:53:29 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"feat(cors):=20=E6=9A=B4=E5=8A=9B?= =?UTF-8?q?=E5=85=81=E8=AE=B8option=E8=AF=B7=E6=B1=82=E9=80=9A=E8=BF=87"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 0fea9664f9bf7415085345419644ef3134806b3c. --- src/main/java/top/suyiiyii/sims/common/RbacInterceptor.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();