Files
angular/packages/platform-server
SkyZeroZx 5e621df24b fix(platform-server): preserve Unicode whitespace in ServerXhr URLs
Avoid String.prototype.trim() when classifying server request URLs because it
strips Unicode whitespace that WHATWG URL parsing preserves as path data.
This mismatch can cause xhr2 to send credentials to a different origin than
the application approved.

Classify the unmodified request URL so whitespace-prefixed input falls through
URL resolution, and cover NBSP- and BOM-prefixed HTTP URLs.

Fixes #70540

(cherry picked from commit 44355181e2)
2026-09-22 21:01:48 +00:00
..
2024-03-28 13:02:50 -07:00