|
|
@ -40,6 +40,7 @@ public class RequestFilter implements GlobalFilter, Ordered { |
|
|
|
// 1. 清洗请求头中from 参数
|
|
|
|
// 1. 清洗请求头中from 参数
|
|
|
|
ServerHttpRequest request = exchange.getRequest().mutate() |
|
|
|
ServerHttpRequest request = exchange.getRequest().mutate() |
|
|
|
.headers(httpHeaders -> httpHeaders.remove("X")) |
|
|
|
.headers(httpHeaders -> httpHeaders.remove("X")) |
|
|
|
|
|
|
|
.headers(httpHeaders -> httpHeaders.add("hwy-req","1")) |
|
|
|
.build(); |
|
|
|
.build(); |
|
|
|
|
|
|
|
|
|
|
|
// 2. 重写StripPrefix
|
|
|
|
// 2. 重写StripPrefix
|
|
|
|