angular/goldens/public-api
Alan Agius 629905d537 fix(platform-server): add allowedHosts option to renderModule and renderApplication
In server-side rendering (SSR) setups, passing request URLs directly to the lower-level rendering APIs `renderModule` or `renderApplication` can expose applications to Server-Side Request Forgery (SSRF) or Host Header Injection attacks via absolute-form request URLs.
To mitigate these vulnerabilities at the framework layer, this commit introduces the `allowedHosts` option to `PlatformConfig` (supporting exact hostnames, wildcards like `*.example.com`, or `*` to allow all).

During platform initialization inside `createServerPlatform`, the hostname of the request `url` is validated against the `allowedHosts` list. If the hostname is not authorized, bootstrap immediately throws a host validation error, preventing unauthorized rendering and silent SSRF bypasses.

Closes #68436

(cherry picked from commit 60552a73e8)
2026-05-07 15:30:07 -07:00
..
animations refactor(animations): deprecate the animations package (#62795) 2025-07-29 09:50:09 +00:00
common fix(core): ensure definitions compile 2026-03-10 16:58:22 +00:00
compiler-cli fix(compiler-cli): report invalid bindings on form controls 2025-11-05 17:35:43 +00:00
core fix(core): allow explicit read generic with signal input transforms 2026-05-01 15:54:01 -07:00
elements build: update to latest dev infra code (#56128) 2024-05-28 14:42:31 +02:00
forms docs: add documentation for NG1002 2026-04-10 10:54:46 +03:00
localize build: update cross-repo angular dependencies 2026-02-25 10:26:00 -08:00
platform-browser feat(platform-browser): add context to createApplication 2025-11-10 14:18:29 -08:00
platform-browser-dynamic refactor(platform-browser): Deprecate the platform-browser-dynamic package (#61043) 2025-05-15 09:48:15 -07:00
platform-server fix(platform-server): add allowedHosts option to renderModule and renderApplication 2026-05-07 15:30:07 -07:00
router docs(docs-infra): remove toString from the API docs 2026-02-20 16:52:01 +00:00
service-worker Revert "feat(service-worker): notify clients about version failures (#62718)" 2025-11-11 12:48:45 -08:00
upgrade fix(upgrade): Remove deprecated UpgradeAdapter (#61659) 2025-08-27 11:11:29 -07:00
manage.js build: update goldens management script to drop shelljs (#64042) 2025-09-26 13:14:09 -04:00