[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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
host | string |
scopes | readonly string[] |
Returns
Section titled “Returns”boolean