web-feature: isSecureContext

baseline logo Widely available

The isSecureContext global property is a boolean for whether the current browsing context is secure. This is primarily a check that the page has been served over an HTTPS URL.