isSecureContext 全局属性

全局只读属性 isSecureContext 返回一个布尔值,指示当前上下文是安全的true)还是不安全的(false)。

一个布尔值,truefalse

规范

Specification
HTML Standard
# dom-issecurecontext-dev

浏览器兼容性

BCD tables only load in the browser

参见