Skip to content

Function: getEffectiveWhitelist() ​

ts
function getEffectiveWhitelist(config): readonly string[];

Compute the effective whitelist = allowedOrigins ∪ additionalOrigins. Deduplicated while preserving first-seen order (allowedOrigins first).

Exported so the validator and any future diagnostics layer use the same derivation rule (single source of truth for whitelist membership).

Parameters ​

ParameterType
configSecurityConfig

Returns ​

readonly string[]