Skip to content

Why does passing Host headers "break everything"? #1905

Answered by gboder
Zirias asked this question in Q&A
Discussion options

You must be logged in to vote

I'm looking into options to allow specifying the DownstreamRequest Header Host value based on the route definition within the ocelot.json files. I can confirm that manipulation of Host values is breaking a lot of features. This property is used to transport some central information and is overwritten by the result of the Service Discovery implementation within the LoadBalacing middleware to carry the downstream host address. Letting external configuration or header manipulation alter this value and guarantee it is being kept along the request processing would required to change the logic how the downstream address is being read and transported over the Middlewares. Whereby this is not imp…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Initially seen a question could become a new feature or bug or closed ;)
5 participants
Converted from issue

This discussion was converted from issue #813 on January 07, 2024 17:20.