Url whitelist module
(require("src/util/url-access-allowed"))(url, whitelist) → {boolean}
Check if a given url is on a given whitelist.
Parameters:
Name | Type | Description |
---|---|---|
url |
url | url to check |
whitelist |
Array | Array of protocol fields that are whitelisted |
- Source:
Returns:
true if the url is whitelisted
- Type
- boolean
- Source: