@angular/ssr 22.0.4 → 22.1.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,12 +68,12 @@ interface AngularAppEngineOptions {
68
68
  */
69
69
  allowedHosts?: readonly string[];
70
70
  /**
71
- * Extends the scope of trusted proxy headers (`X-Forwarded-*`).
71
+ * Extends the scope of trusted proxy headers (`Forwarded` or `X-Forwarded-*`).
72
72
  *
73
73
  * @remarks
74
74
  * **This is a security-sensitive option!**
75
75
  *
76
- * When `trustProxyHeaders` is enabled, request headers such as `X-Forwarded-Host` and
76
+ * When `trustProxyHeaders` is enabled, request headers such as `Forwarded`, `X-Forwarded-Host`, and
77
77
  * `X-Forwarded-Prefix` are trusted by the server and used for routing. These
78
78
  * headers must be strictly validated and provided by a trusted client (e.g., at a reverse proxy, load
79
79
  * balancer, or API gateway) and must *not* be provided by untrusted end users.
package/types/node.d.ts CHANGED
@@ -195,7 +195,7 @@ declare function writeResponseToNodeResponse(source: Response, destination: Serv
195
195
  * @param trustProxyHeaders - A boolean or an array of proxy headers to trust when constructing the request URL.
196
196
  *
197
197
  * @remarks
198
- * When `trustProxyHeaders` is enabled, headers such as `X-Forwarded-Host` and
198
+ * When `trustProxyHeaders` is enabled, headers such as `Forwarded`, `X-Forwarded-Host`, and
199
199
  * `X-Forwarded-Prefix` should ideally be strictly validated at a higher infrastructure
200
200
  * level (e.g., at the reverse proxy or API gateway) before reaching the application.
201
201
  *