mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-28 12:41:55 +08:00
Compare commits
4 Commits
2661ed51aa
...
436281728d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
436281728d | ||
|
|
a6bcebb62b | ||
|
|
1cb262daa3 | ||
|
|
4ae09f3793 |
@@ -29,7 +29,7 @@ http {
|
||||
}
|
||||
|
||||
# 避免actuator暴露
|
||||
if ($request_uri ~ "/actuator") {
|
||||
if ($uri ~ "/actuator") {
|
||||
return 403;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,11 @@ public class AuthFilter implements GlobalFilter, Ordered
|
||||
ServerHttpRequest.Builder mutate = request.mutate();
|
||||
|
||||
String url = request.getURI().getPath();
|
||||
|
||||
if (url.endsWith("/")) {
|
||||
url = url.substring(0, url.length() - 1);
|
||||
}
|
||||
|
||||
// 跳过不需要验证的路径
|
||||
if (StringUtils.matches(url, ignoreWhite.getWhites()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user