Skip to content

Sandbox / SandboxNetworkRules

Type Alias: SandboxNetworkRules

SandboxNetworkRules = Record<string, SandboxNetworkRule[]> | Map<string, SandboxNetworkRule[]>

Map of host (or CIDR / IP) to ordered list of rules applied to outbound requests for that host. Accepts either a plain object or a Map. Registering a host here does not allow egress on its own — the host must also appear in SandboxNetworkOpts.allowOut.