Files
Cursor AgentandJulius Marminge ec7629b2b1 Fix AllowedHost to store parsed host instead of raw input
Store `parsed.host` from the WHATWG URL parser instead of the raw
lowercased input string. This ensures the stored allowlist entries
match what `normalizeRequestHost` produces at request time:

- Trailing slashes are stripped (e.g. "app.example/" → "app.example")
- Default HTTP ports are stripped (e.g. "app.example:80" → "app.example")

Both normalizations already happen in `normalizeRequestHost` via
`new URL(...).host`, so applying the same transform at storage time
keeps the two sides consistent.

Co-authored-by: Julius Marminge <[email protected]>
2026-03-17 20:08:37 +00:00
..
2026-03-11 17:27:36 +00:00
2026-03-03 00:30:15 -08:00
2026-03-03 18:22:29 -08:00