Revert "feat(cors): 允许option请求通过"
Some checks failed
Docker Build and Publish / build (push) Has been cancelled
Gitea Sync / trigger-gitea-sync (push) Has been cancelled
Java CI with Maven / build (push) Has been cancelled

This reverts commit f867d7b7bc9fd2a809fc725f401a42542659368c.
This commit is contained in:
suyiiyii 2024-08-29 17:53:30 +08:00
parent 6a0812b836
commit f113c341e5

View File

@ -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();