Skip to content

How to have PathBase set so default X-Forwarded-Prefix works? #1890

Answered by Tratcher
gberesford asked this question in Q&A
Discussion options

You must be logged in to vote

RequestHeaderXForwardedPrefixTransform flows HttpContext.Request.PathBase. You're not using that field in the proxy because you have two different bases, app1 and app2. Adding the x-forwarded-prefix header yourself is the correct thing to do.

var pathBase = context.HttpContext.Request.PathBase;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gberesford
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