Skip to content

Function: toUrlAllowList()

toUrlAllowList(patterns): UrlAllowList

Compile a normalized entry list into a UrlAllowList. An empty list yields a permit-all allow-list whose UrlAllowList.allows always returns true. A URL that can’t be parsed is never permitted by a restricted list.

readonly string[]

UrlAllowList