Skip to content
Discussion options

You must be logged in to vote

Hi Maarten,

Thanks again for your quick reply. After looking deeper into this, we confirmed your assumption that App Proxy does not send the X-Forwarded-Host header (it’s been a requested feature for some time, according to online forums).

To work around this, we ended up hard-coding the external origin in our API config and using the following approach to apply it to the Identity Server's settings:

Startup.cs

public void ConfigureServices(IServiceCollection services)
{
        services.AddSingleton<Duende.IdentityServer.Services.IServerUrls.IServerUrls>(
                new FixedServerUrls
                {
                        Origin = FunctionToGetProxyURLFromConfigFile()

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lukazohar
Comment options

Answer selected by lukazohar
@maartenba
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants