Skip to content

[F] isHostWithinScopes

function isHostWithinScopes(host, scopes): boolean;

Test whether host is allowed by scopes. A scope of * allows any host; a scope of *.example.com matches any sub-domain (and the apex) of example.com; otherwise an exact (case-insensitive) match is required.

ParameterType
hoststring
scopesreadonly string[]

boolean