mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-06-02 00:16:11 +08:00
Revert "feat(cors): 暴力允许option请求通过"
This reverts commit 0fea9664f9bf7415085345419644ef3134806b3c.
This commit is contained in:
parent
fb37c59810
commit
6a0812b836
@ -28,8 +28,7 @@ public class RbacInterceptor implements HandlerInterceptor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if ("OPTIONS".equals(request.getMethod())) {
|
if ("OPTIONS".equals(request.getMethod())) {
|
||||||
response.setStatus(HttpServletResponse.SC_OK);
|
return true;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
// 获取用户角色
|
// 获取用户角色
|
||||||
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