mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-29 21:11:57 +08:00
Compare commits
4 Commits
7e4ded7a4c
...
0b2b49daee
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b2b49daee | ||
|
|
a6bcebb62b | ||
|
|
1cb262daa3 | ||
|
|
477b7472be |
@@ -29,7 +29,7 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# 避免actuator暴露
|
# 避免actuator暴露
|
||||||
if ($request_uri ~ "/actuator") {
|
if ($uri ~ "/actuator") {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class FeignRequestInterceptor implements RequestInterceptor
|
|||||||
public void apply(RequestTemplate requestTemplate)
|
public void apply(RequestTemplate requestTemplate)
|
||||||
{
|
{
|
||||||
HttpServletRequest httpServletRequest = ServletUtils.getRequest();
|
HttpServletRequest httpServletRequest = ServletUtils.getRequest();
|
||||||
if (StringUtils.isNotNull(httpServletRequest))
|
if (httpServletRequest != null)
|
||||||
{
|
{
|
||||||
Map<String, String> headers = ServletUtils.getHeaders(httpServletRequest);
|
Map<String, String> headers = ServletUtils.getHeaders(httpServletRequest);
|
||||||
// 传递用户信息请求头,防止丢失
|
// 传递用户信息请求头,防止丢失
|
||||||
|
|||||||
Reference in New Issue
Block a user