--- title: WindowOrWorkerGlobalScope.isSecureContext slug: Web/API/isSecureContext tags: - API - DOM - Window - WindowOrWorkerGlobalContext - Workers - isSecureContext - ウェブ - プロパティ - リファレンス translation_of: Web/API/WindowOrWorkerGlobalScope/isSecureContext original_slug: Web/API/WindowOrWorkerGlobalScope/isSecureContext --- <p>{{APIRef()}}{{SeeCompatTable}}</p> <p>{{domxref("WindowOrWorkerGlobalScope")}} インターフェイスの読み取り専用 <code><strong>isSecureContext</strong></code> プロパティは、現在のコンテキストが安全(<code>true</code>)かそうではない(<code>false</code>)を示すブール値を返します。</p> <h2 id="構文">構文</h2> <pre class="syntaxbox">var <em>isItSecure</em> = self.isSecureContext; // or just isSecureContext </pre> <h3 id="値">値</h3> <p>{{domxref("Boolean")}}.</p> <h2 id="仕様">仕様</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">仕様</th> <th scope="col">ステータス</th> <th scope="col">コメント</th> </tr> <tr> <td>{{SpecName('Secure Contexts', '#dom-windoworworkerglobalscope-issecurecontext', 'WindowOrWorkerGlobalScope.isSecureContext')}}</td> <td>{{Spec2('Secure Contexts')}}</td> <td>初期定義。</td> </tr> </tbody> </table> <h2 id="ブラウザ互換性">ブラウザ互換性</h2> <p>{{Compat("api.WindowOrWorkerGlobalScope.isSecureContext")}}</p> <h2 id="参照">参照</h2> <ul> <li><a href="/ja/docs/Web/Security/Secure_Contexts">Secure contexts</a></li> </ul>