Azure-docs: X-Original-Host does not work on Application Gateway v2

Created on 17 Oct 2018  Â·  14Comments  Â·  Source: MicrosoftDocs/azure-docs

Per ticket 118101521001417, X-Original-Host isn't available for Application Gateway SKU V2. Please update the documentation to call that out.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

application-gatewasvc assigned-to-author doc-enhancement triaged

Most helpful comment

Isn't the real bug here the fact that Application Gateway does not support the de-fact X-Forwarded-Host header?

A great deal of software using X-Forwarded-Host and will not work behind proxy services that do not implement it. X-Original-Host is far far less supported.

All 14 comments

@ecaron Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@ecaron
This is a bug and the product team is working on a fix.

Isn't the real bug here the fact that Application Gateway does not support the de-fact X-Forwarded-Host header?

A great deal of software using X-Forwarded-Host and will not work behind proxy services that do not implement it. X-Original-Host is far far less supported.

@vhorne can you provide a link to the issue so we can see when it is fixed?

@pierslawson

Looks like the product team is shooting for early January.

@vhorne do you happen to have an update and is this broken on the WAF V1 tier too?

This is pretty critical stuff! Is there another GitHub issue tracking the fix?

Agree with @michaeljfazio - can't we have the standard header for this as per this feedback request?

EDIT: That header does work on WAF V1.

Hi, this is a real blocker - gateway is not usable for us now. I also agree you should make at least choosable to use standard X-Forwarded-Host header. I do not like the idea of rewriting all the middlewares which count on X-Forwarded-Host to use X-Original-Host instead.

@vhorne Any update on this one?

@ecaron Fix should be live in about 2 weeks.

@vhorne To clarify, will the fix include theX-Forwarded-Host header?

In the meantime, is it possible to add a custom header to an existing AppGateway rule? I attempted to follow the instructions here, but ran into an issue running the commands in that article (#22944)

I have to agree with everyone else on the X-Forwarded-Host header. It really is the de-facto header many middleware services expect from reverse proxies.

The solution should not be that the customer has to manually rewrite the headers to add the X-Forwarded-Host header. The AppGW should include this header natively especially in V2, as a way to avoid save customers many hours/days of troubleshooting.

@ecaron X-Original-Host is now available for Application Gateway SKU v2.

please-close

@vhorne Do we need to do a manual update now? Cause I'm still not seeing the header.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bdcoder2 picture bdcoder2  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

varma31 picture varma31  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments

Ponant picture Ponant  Â·  3Comments