Skip to main content
Version: Next

NetworkRestrictions interface

Signature​

export interface NetworkRestrictions

Properties​

Property

Modifiers

Type

Description

Default

allowlist

optional

string[]

A list of URLPattern strings to allow. Mutually exclusive with NetworkRestrictions.blocklist. Passing [] or omitting this option means no restriction.

Remarks:

The allowlist does not apply to WebTransport and to TURN over TCP at this time. It blocks all WebRTC traffic over UDP. See ConnectOptions.allowlist.

blocklist

optional

string[]

A list of URLPattern strings to block. Mutually exclusive with NetworkRestrictions.allowlist. Passing [] or omitting this option means no restriction.

Remarks:

The blocklist does not apply to WebTransport and WebRTC at this time. See ConnectOptions.blocklist.