WorkerGlobalScope: isSecureContext property

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 Standard
# 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
isSecureContext
Available in workers

See also