mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
b3bb36ad87
Under the WHATWG URL standard, HTTP and HTTPS URLs lacking an authority (e.g., `http:/path` or `http:path`) resolve as relative paths when resolved against an origin of the same scheme. Previously, `relativeUrlsTransformerInterceptorFn` treated any URL with a scheme as an absolute URL, bypassing base resolution in SSR and allowing Node fetch to parse the path as a cross-origin host. This commit updates SSR URL resolution and the HTTP interceptor to ensure HTTP(S) URLs without an authority are resolved against the current origin, preventing unexpected origin changes and aligning SSR with browser behavior. Fixes #70447
4.9 KiB
4.9 KiB