Skip to content
Discussion options

You must be logged in to vote

You're on the right track with the CustomTransformer. A similar sample is here:
https://github.com/microsoft/reverse-proxy/blob/ad6ee6a3c2f5012ad9892db0d738ed75d8e8d4f1/samples/ReverseProxy.Transforms.Sample/Startup.cs#L48-L55

but there is no way to set or modify cookies.

The cookies are just a non-special header in the request headers collection, you can call TryGetValues to get the current cookies, Remove("Cookies") to drop everything, and Add or TryAddWithoutValidation to re-set the header with your modified cookies.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@florianwachs
Comment options

Answer selected by florianwachs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants