mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Trust X-Forwarded headers in the IDP
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user