mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
13b6bbd6a0
Add a dedicated error reference page for NG05703 (suspicious URL origin change during SSR) and update the error to use RuntimeError with a negative code so the error message automatically includes a link to the docs page in both dev and production builds. Update affected tests in url_spec.ts, platform_location_spec.ts, and integration_spec.ts to match the new NG05703-prefixed error message format. Fixes: #69667
22 lines
617 B
TypeScript
22 lines
617 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
/**
|
|
* The list of error codes used in runtime code of the `platform-server` package.
|
|
* Reserved error code range: 5700-5800.
|
|
*/
|
|
export const enum RuntimeErrorCode {
|
|
GET_COOKIE_NOT_IMPLEMENTED = 5700,
|
|
INVALID_URL = 5701,
|
|
PROTOCOL_RELATIVE_URL_NOT_ALLOWED = 5702,
|
|
SUSPICIOUS_URL_CHANGE_ORIGIN = -5703,
|
|
DISABLED_DOM_EMULATION_IN_NON_BROWSER = 5704,
|
|
XHR_NOT_LOADED = 5705,
|
|
HOST_NOT_ALLOWED = 5706,
|
|
}
|