Adding Headers to Zuul when re-directing

后端 未结 3 1664
离开以前
离开以前 2021-01-18 07:49

I am trying to use Zuul to redirect calls to a downstream system somewhere else. In the re-direct, I need to add in a Header with necessary data for the

3条回答
  •  不要未来只要你来
    2021-01-18 08:09

    I guess you use a Route Filter, maybe you can try with a Pre Filter.

    Adding a custom header can be done with something like this : context.addZuulRequestHeader("Authorization", "Basic " + credentials);.

    For the redirection part, you can check this thread

提交回复
热议问题