This commit is contained in:
Connor Yoh
2025-11-24 15:56:31 +00:00
parent 51500da7b8
commit 91db3fd72c
@@ -13,10 +13,10 @@ export function isSecureContext(): boolean {
const protocol = window.location.protocol;
// Localhost is considered secure for development
// const hostname = window.location.hostname;
// if (hostname === 'localhost' || hostname === '127.0.0.1' || hostname === '[::1]') {
// return true;
// }
const hostname = window.location.hostname;
if (hostname === 'localhost' || hostname === '127.0.0.1' || hostname === '[::1]') {
return true;
}
// Check if HTTPS
return protocol === 'https:';