Skip to content

Interface: UrlAllowList

A compiled URL allow-list. Build one with toUrlAllowList.

readonly patterns: readonly string[]

The normalized entries backing this list (for diagnostics).


readonly restricted: boolean

Whether the list actually restricts anything (false == permit all).

allows(url): boolean

Whether url is permitted. An unrestricted list permits everything.

string

boolean