* Throws a suspicious URL error indicating a security bypass attempt.
(urlStr: string)
| 118 | * Throws a suspicious URL error indicating a security bypass attempt. |
| 119 | */ |
| 120 | function throwSuspiciousUrlError(urlStr: string): never { |
| 121 | throw new RuntimeError( |
| 122 | RuntimeErrorCode.SUSPICIOUS_URL_CHANGE_ORIGIN, |
| 123 | typeof ngDevMode === 'undefined' || ngDevMode |
| 124 | ? `URL ${urlStr} changed origin unexpectedly. This is suspicious and may indicate a security bypass attempt.` |
| 125 | : urlStr, |
| 126 | ); |
| 127 | } |
| 128 | |
| 129 | /** |
| 130 | * Checks if the origin has changed in a safe way. |
no outgoing calls
no test coverage detected
searching dependent graphs…