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.
Parameters
Section titled “Parameters”patterns
Section titled “patterns”readonly string[]