【问题标题】:Is there a way to send Authorization in Header from Zuul apigateway to auth-microservice将 Header 中的授权从 Zuul apigateway 发送到 auth-microservice
【发布时间】:2020-07-11 07:36:57
【问题描述】:

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

【问题讨论】:

    标签: spring-boot jwt authorization microservices netflix-zuul


    【解决方案1】:

    解决方案是在 zuul 属性中添加属性 sensitive-headers 并从默认值中删除“授权”,如 herehere 中所述

    【讨论】:

      猜你喜欢
      • 2021-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-19
      • 2023-04-02
      • 2021-04-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多