Const
A base URL must not carry whitespace or control characters. new URL() trims surrounding whitespace and drops tab/CR/LF inside silently, so the URL requested would not be the one typed. Reject rather than guess.
new URL()
A base URL must not carry whitespace or control characters.
new URL()trims surrounding whitespace and drops tab/CR/LF inside silently, so the URL requested would not be the one typed. Reject rather than guess.