WorkerGlobalScope: isSecureContext property

Note: This feature is only available in Web Workers.

The isSecureContext read-only property of the WorkerGlobalScope interface returns a boolean indicating whether the current context is secure (true) or not (false).

Value

A boolean.

Specifications

Specification
HTML
# dom-issecurecontext-dev

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
isSecureContext
Available in workers

See also