-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Open
Labels
area: @angular/ssrgemini-triagedLabel noting that an issue has been triaged by geminiLabel noting that an issue has been triaged by gemini
Milestone
Description
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/ssr 21.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.
This is noted here - https://angular.dev/best-practices/security#preventing-server-side-request-forgery-ssrf
Since this change, requests that used to SSR-render now fail and only do CSR:
This is a regression for apps that cannot predict all tenant hosts via allowedHosts.
Proposed solution
Allow a wildcard for allowedHosts or bypass the SSRF check altogether.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run ng version)
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: @angular/ssrgemini-triagedLabel noting that an issue has been triaged by geminiLabel noting that an issue has been triaged by gemini