Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/angular/ssr/node/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ export type NodeRequestHandlerFunction = (
* });
* ```
*
* @remarks
* **Security note:** `createWebRequestFromNodeRequest()` builds the request URL directly from the
* `Host` and `X-Forwarded-*` headers and does not validate them. When integrating with a
* third-party framework as shown above, configure `allowedHosts` (and, if needed,
* `trustProxyHeaders`) via `AngularNodeAppEngine`, or otherwise validate these headers yourself,
* to prevent Server-Side Request Forgery (SSRF). For more information, see
* https://angular.dev/best-practices/security#preventing-server-side-request-forgery-ssrf.
*
* @example
* Usage in a Fastify application:
* ```ts
Expand Down
Loading