fix: Trust X-Forwarded headers in the IDP

This commit is contained in:
Joachim Van Herwegen
2021-07-26 13:59:09 +02:00
parent 41694a171d
commit 2df3f1f28c
2 changed files with 7 additions and 2 deletions

View File

@@ -101,7 +101,10 @@ export class IdentityProviderFactory implements ProviderFactory {
// Render errors with our own error handler
this.configureErrors(config);
return new Provider(this.baseUrl, config);
// Allow provider to interpret reverse proxy headers
const provider = new Provider(this.baseUrl, config);
provider.proxy = true;
return provider;
}
/**