question

BrendanBladdick-2208 avatar image
1 Vote"
BrendanBladdick-2208 asked Laurence-9808 commented

is there a way to set an "X-Forwarded-Host" on Azure App Proxy?

When I set up my application through the app proxy url, it keeps trying to send back the internal machine name rather than the app proxy url. If not then does Azure Application Gateway have this?

I reached out to twitter support and they said no. The thing is, Esri software requires this -https://enterprise.arcgis.com/en/server/latest/deploy/windows/using-a-reverse-proxy-server-with-arcgis-server.htm#ESRI_SECTION1_7C21416FDBFA440191ADF803B70C7DA5

So they referenced an article, https://t.co/q0eCUTCBUb?amp=1, that says to try using a Reply URL however when I asked for documentation on how to use this to achieve what the X-Forwarded-Host, they said they don't have any docs on how to achieve this solution.

My question is, will it be required to set a "reply URL" or a "Redirect URI" within Azure App Proxy to achieve what the X-Forwarded-Host Header is supposed to do? If so do you have a guide on how to do this?

Thank you,

Brendan

azure-ad-application-proxy
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sikumars avatar image
0 Votes"
sikumars answered Laurence-9808 commented

Hello Brendan,

Thanks for reaching out and sincere apologies for the delay on this. We are constantly trying to reduce our answer time and in coming days you will see a significant improvement here. So we appreciate you posting your future queries here.

Unfortunately, X-Forwarded-Host does not supported by Azure AD Application Proxy.


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello Brendan,

Could you give an update on this ticket? It seems that the Azure AD Application Proxy does not:
- Translate URLs in JSON/XML responses (WMS/WFS/OData/etc.).
- Does not set any header to which the original host could be determined.

With the app proxy, an application cannot know on which host a user accessed the system. This will fail when the system needs to respond content that should contain an absolute URL (This is the case for WMS/WFS/OData/etc.).

0 Votes 0 ·
BrendanBladdick-2208 avatar image
1 Vote"
BrendanBladdick-2208 answered

What is the workaround then when applications require X-Forwarded-Host on their proxy?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.