Skip to content

1681-engine / electron / ExternalPolicy

Interface: ExternalPolicy ​

Defined in: src/electron/lockdownRules.ts:8

The links a locked-down window may open in the system browser: https only, no credentials in the URL, to one of hosts or a subdomain of it — or, for a host where anyone can publish a page (a code host), only under one of its paths.

Properties ​

hosts ​

ts
hosts: readonly string[];

Defined in: src/electron/lockdownRules.ts:10

Hosts allowed whole, each with its subdomains (example.com allows www.example.com).


paths? ​

ts
optional paths?: readonly object[];

Defined in: src/electron/lockdownRules.ts:12

Hosts allowed only under a path prefix (exact host, prefix compared case-insensitively), e.g. one owner's repositories.

Released under the MIT License.