Skip to main content

Module url

Module url 

Source

Functionsยง

is_valid_forwarded_host
Reject unsafe x-forwarded-host / authority values used for base URL inference.
is_valid_forwarded_proto
Reject unsafe x-forwarded-proto values (Better Auth validateProxyHeader parity).
normalize_pathname
Normalize a request URL pathname by removing the auth base path and trailing slashes.