有没有办法将 Header 中的授权从 Zuul apigateway 发送到 auth-microservice

Is there a way to send Authorization in Header from Zuul apigateway to auth-microservice

我在使用带有 JWT 的微服务架构的项目中工作,一切都很好,但是当我在客户端(Angular 应用程序)的请求中发送授权时,api-gateway( ZuulFilter),然后请求被发送到 auth-server,问题是我在 header 中找不到授权,所有数据都丢失了。有人有想法吗?

解决方案是在 zuul 属性中添加 属性 sensitive-headers 并从默认值中删除 "Authorization" ,如 here and here[ 所述=11=]