angular/packages/platform-server/test
Alan Agius f584840e2e
Some checks failed
DevInfra / assistant_to_the_branch_manager (push) Has been cancelled
CI (push) / lint (push) Has been cancelled
CI (push) / devtools (push) Has been cancelled
CI (push) / test (push) Has been cancelled
CI (push) / integration-tests (push) Has been cancelled
CI (push) / adev (push) Has been cancelled
CI (push) / publish-snapshots (push) Has been cancelled
CI (push) / zone-js (push) Has been cancelled
Update ADEV Angular CDK APIs and CLI Help / Update Angular CDK APIs and CLI Help (if necessary) (push) Has been cancelled
CI (push) / adev-deploy (push) Has been cancelled
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
2026-05-07 16:22:46 -06:00
..
BUILD.bazel refactor(bazel): reduce build deps (#63348) 2025-08-28 09:16:10 -07:00
dom_utils.ts fix(core): Ensure application remains unstable during bootstrap (#62631) 2025-07-15 07:52:36 -07:00
event_replay_spec.ts build: migrate to using new jasmine_test (#62086) 2025-06-18 08:27:26 +02:00
full_app_hydration_spec.ts refactor(core): dispatch enter and leave animations at the right times (#63710) 2025-09-10 22:24:31 +00:00
hydration_utils.ts feat(core): introduce BootstrapContext for improved server bootstrapping (#63636) 2025-09-09 10:45:02 -07:00
incremental_hydration_spec.ts refactor(core): warning when hydration trigger is used without hydration being enabled (#64185) 2025-10-14 11:55:22 -07:00
integration_spec.ts refactor(core): Update tests for zoneless by default (#63672) 2025-09-09 15:07:24 -07:00
platform_location_spec.ts fix(platform-server): ensure origin has a trailing slash when parsing url (#68468) 2026-05-06 14:43:10 -07:00
render_spec.ts fix(core): do not rename ARIA property bindings to attributes (#64089) 2025-09-25 14:51:13 -04:00
transfer_state_spec.ts refactor(core): add a getTransferState for the devtools (#62722) 2025-07-21 17:00:27 -04:00
utils_spec.ts fix(platform-server): add allowedHosts option to renderModule and renderApplication 2026-05-07 16:22:46 -06:00