AddWebUIWhitelist
From Onset Developer Wiki
Description
Adds a domain to the remote WebUI whitelist. Only domain names with a top level domain (TLD) can be whitelisted.
When a player connects they will be asked to allow the domain names. Players can also reject the request.
This function can be called from the index.lua or any other package script.
Syntax
AddWebUIWhitelist(domain)
Parameters
- domain
The domain to whitelist. Example: vimeo.com
Return Value
- Returns true on success.
Example
--index.lua
AddWebUIWhitelist("vimeo.com")
AddWebUIWhitelist("vimeocdn.com")
AddWebUIWhitelist("firebaseio.com")
AddWebUIWhitelist("sentry-cdn.com")
AddWebUIWhitelist("vimeo.magisto.com")
AddWebUIWhitelist("akamaized.net")