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).
isSecureContext
WorkerGlobalScope
true
false
A boolean.