Interface: UrlAllowList
A compiled URL allow-list. Build one with toUrlAllowList.
Properties
Section titled “Properties”patterns
Section titled “patterns”
readonlypatterns: readonlystring[]
The normalized entries backing this list (for diagnostics).
restricted
Section titled “restricted”
readonlyrestricted:boolean
Whether the list actually restricts anything (false == permit all).
Methods
Section titled “Methods”allows()
Section titled “allows()”allows(
url):boolean
Whether url is permitted. An unrestricted list permits everything.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean