Skip to content

ElectronPrivileges

Unofficial

Privileges granted to a custom scheme registered with a protocol.

Import:

import type { ElectronPrivileges } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ElectronPrivileges

Properties

Property Type Description
allowServiceWorkers? boolean Whether to allow registering ServiceWorkers for this scheme.
bypassCSP? boolean Whether to bypass the Content Security Policy for resources served by this scheme.
corsEnabled? boolean Whether to enable CORS for this scheme.
secure? boolean Whether to treat the scheme as secure.
standard? boolean Whether to treat the scheme as a standard scheme (generic URI syntax).
stream? boolean Whether the scheme should be treated as streaming for <video> and <audio> elements.
supportFetchAPI? boolean Whether to support the fetch API for this scheme.

Links to this page: