feat:网关过滤
This commit is contained in:
@@ -35,6 +35,7 @@ public class AuthGlobalFilter implements GlobalFilter, Ordered {
|
||||
log.debug("跳过 Token 校验: {}", path);
|
||||
return chain.filter(exchange);
|
||||
}
|
||||
// todo open开放接口如何处理
|
||||
|
||||
// 获取 Header 中的 Authorization
|
||||
String token = request.getHeaders().getFirst("Authorization");
|
||||
|
||||
Reference in New Issue
Block a user