@angular/ssr 21.2.3 → 22.0.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.
- package/fesm2022/_validation-chunk.mjs +2 -2
- package/fesm2022/_validation-chunk.mjs.map +1 -1
- package/fesm2022/node.mjs +4 -14
- package/fesm2022/node.mjs.map +1 -1
- package/fesm2022/ssr.mjs +20 -55
- package/fesm2022/ssr.mjs.map +1 -1
- package/package.json +11 -11
- package/third_party/beasties/index.js +13 -6
- package/third_party/beasties/index.js.map +1 -1
- package/types/_app-engine-chunk.d.ts +4 -5
- package/types/node.d.ts +1 -2
- package/types/ssr.d.ts +1 -1
|
@@ -137,8 +137,8 @@ declare class AngularAppEngine {
|
|
|
137
137
|
* @remarks
|
|
138
138
|
* To prevent potential Server-Side Request Forgery (SSRF), this function verifies the hostname
|
|
139
139
|
* of the `request.url` against a list of authorized hosts.
|
|
140
|
-
* If the hostname is not recognized
|
|
141
|
-
*
|
|
140
|
+
* If the hostname is not recognized a 400 Bad Request is returned.
|
|
141
|
+
*
|
|
142
142
|
* Resolution:
|
|
143
143
|
* Authorize your hostname by configuring `allowedHosts` in `angular.json` in:
|
|
144
144
|
* `projects.[project-name].architect.build.options.security.allowedHosts`.
|
|
@@ -190,10 +190,9 @@ declare class AngularAppEngine {
|
|
|
190
190
|
/**
|
|
191
191
|
* Handles validation errors by logging the error and returning an appropriate response.
|
|
192
192
|
*
|
|
193
|
+
* @param url - The URL of the request.
|
|
193
194
|
* @param error - The validation error to handle.
|
|
194
|
-
* @
|
|
195
|
-
* @returns A promise that resolves to a `Response` object with a 400 status code if allowed hosts are configured,
|
|
196
|
-
* or `null` if allowed hosts are not configured (in which case the request is served client-side).
|
|
195
|
+
* @returns A `Response` object with a 400 status code.
|
|
197
196
|
*/
|
|
198
197
|
private handleValidationError;
|
|
199
198
|
}
|
package/types/node.d.ts
CHANGED
|
@@ -92,8 +92,7 @@ declare class AngularNodeAppEngine {
|
|
|
92
92
|
* @remarks
|
|
93
93
|
* To prevent potential Server-Side Request Forgery (SSRF), this function verifies the hostname
|
|
94
94
|
* of the `request.url` against a list of authorized hosts.
|
|
95
|
-
* If the hostname is not recognized
|
|
96
|
-
* page is returned otherwise a 400 Bad Request is returned.
|
|
95
|
+
* If the hostname is not recognized a 400 Bad Request is returned.
|
|
97
96
|
*
|
|
98
97
|
* Resolution:
|
|
99
98
|
* Authorize your hostname by configuring `allowedHosts` in `angular.json` in:
|
package/types/ssr.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Type, EnvironmentProviders, Provider, ApplicationRef, InjectionToken } from '@angular/core';
|
|
2
2
|
import { DefaultExport } from '@angular/router';
|
|
3
3
|
import { BootstrapContext } from '@angular/platform-browser';
|
|
4
4
|
import { Hooks } from './_app-engine-chunk.js';
|