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