angular/integration/platform-server/projects/ngmodule
Alan Agius 8569db8875
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:30:48 -06:00
..
src test: add integration test for defer with input on SSR with zones (#61056) 2025-04-30 12:02:03 -07:00
prerender.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
server.ts fix(platform-server): add allowedHosts option to renderModule and renderApplication 2026-05-07 16:30:48 -06:00
tsconfig.app.json test: refactor platform-server integration tests to use application builder (#53205) 2023-11-28 11:07:01 +01:00
tsconfig.spec.json docs: update link to the TS config. (#50933) 2023-07-05 13:58:35 +02:00