Files
code-server/test/unit/node
Harsh Bhanushali 89cba83cb4 Normalize default ports and use X-Forwarded-Port in the origin check (#8059)
The origin check compared the host header to the origin's host as plain
strings, so `example.com:443` did not match `https://example.com`, and a
proxy forwarding `$host` (no port) together with X-Forwarded-Port failed
on any non-default port.

Default ports (80 for http, 443 for https) are now treated as no port,
and when X-Forwarded-Host has no port the port from X-Forwarded-Port is
used.  Everything else is still an exact match.  getHost() is unchanged
for the domain proxy.
2026-10-26 16:42:24 -08:00
..
2026-10-23 15:06:41 +00:00
2026-08-20 13:24:49 -08:00
2026-06-16 11:27:53 -08:00
2026-10-23 22:15:00 +00:00
2025-10-28 16:10:56 -08:00
2024-10-17 20:32:21 -08:00
2022-12-06 13:28:27 -07:00