You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @angular/* package(s) are the source of the bug?
platform-server
Is this a regression?
Yes
Description
Is this a regression?
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
@angular/ssr21.0.x (regression observed after upgrading to 21.1.x)
Description
After upgrading to 21.1.x which includes strict SSR host/forwarded-header validation, multi-tenant SSR apps started failing for valid tenant domains. This is something that was being validated upstream so far, so no need to validate on the Angular level.
Activity
alan-agius4 commentedon Mar 10, 2026
Can you elaborate how the
HOSTandX-FORWARDED-HOSTheaders are being validated upstream?stpp2 commentedon Mar 10, 2026
The app doesn't have a public IP, it's only accessible behind a reverse proxy (which passes down the headers). I'm validating hosts there.
alan-agius4 commentedon Mar 10, 2026
Just to confirm you are validating both
X-FORWARDED-HOSTandHOSTin the reverse proxy right?stpp2 commentedon Mar 10, 2026
Yeah those are being validated (against an external API endpoint) on the reverse proxy layer.
odomanskyi commentedon Mar 23, 2026
I'm facing the same issue
alan-agius4 commentedon Mar 24, 2026
Can't you use
NG_ALLOWED_HOSTSto provide all the allowed hosts in a multi-tenant application?stpp2 commentedon Mar 24, 2026
This isn't ideal for two reasons:
I think a bypass or wildcard would be very useful here
fix(@angular/ssr): support '*' in allowedHosts and warn about securit…
fix(@angular/ssr): support '*' in allowedHosts and warn about securit…
angular-automatic-lock-bot commentedon Apr 25, 2026
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.