isSecureContext
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The global isSecureContext
read-only property returns a boolean indicating whether the current context is secure (true
) or not (false
).
Syntax
var isItSecure = self.isSecureContext; // or just isSecureContext
Value
Boolean true
or false
.
Specifications
Specification |
---|
HTML Standard (HTML) # dom-issecurecontext-dev |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
isSecureContext |
47 |
15 |
49 |
No |
34 |
11.1 |
47 |
47 |
49 |
34 |
11.3 |
5.0 |
considers_window_opener |
No |
No |
49 |
No |
? |
? |
No |
No |
49 |
? |
? |
No |
worker_support |
55 |
15 |
52 |
No |
40 |
11.1 |
55 |
55 |
52 |
41 |
11.3 |
6.0 |
See also
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/isSecureContext