Files
angular__angular/packages/platform-server/src/errors.ts
T
Shuaib Hasan Akib 13b6bbd6a0 docs(platform-server): add error reference page for NG05703 and wire up RuntimeError
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
2026-07-09 11:56:01 -07:00

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,
}