urlMatchCandidate
urlMatchCandidate(
url):string
Defined in: web/address-policy.ts:80
The string AddressPolicy.allowedUrls patterns are matched against:
${protocol}//${hostname}:${port}${pathname}. Excludes userinfo (never reaches hostname),
query, and fragment (don’t change the network destination) — see README.md for why. hostname
is already lowercased/IDN-normalized and pathname already has .. resolved out, by URL
itself.
Parameters
Section titled “Parameters”URL
Returns
Section titled “Returns”string