-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manipulate headers to downstream hosts #1267
Comments
I reverted back to 15.0.6 and found out the above code is working. |
@jeroenvheel This may be an alternative solution for you:
In Startup.cs, add the handler like this:
Then in your ocelot config, you set the delegating handler as follows:
Note: There may be an issue with the above implementation for version 15.0.7+, as described in #1252 |
@rh101 Thanks ! this is working perfect. |
Hi is was playing with Ocelot and was wondering if it was possible to add information in the headers for the downstream hosts
I'm trying to add the subdomain to the headers so my back end logic can switch things based on a tenant domain.
I found this in the closed issues #1011
but the solution gives a error on the HttpContext and the DownstreamRequest
when i try to fix the code i can't find the DownstreamRequest
Ocelot version: 16.0.1
The text was updated successfully, but these errors were encountered: