isSecureContext

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2018.

グローバルの isSecureContext プロパティは読み取り専用で、現在のコンテキストが安全である (true) かそうではない (false) を示す論理値を返します。

true または false の論理値です。

仕様書

Specification
HTML
# dom-issecurecontext-dev

ブラウザーの互換性

関連情報