Skip to content
docs

installSecureContext

installSecureContext(): "native" | "polyfilled" | "insecure"

Defined in: index.ts:179

globalThis.isSecureContext = true when the VM has no such flag. @solana/kit refuses crypto.subtle outside a secure context, so every program-derived address — associated token accounts, token metadata accounts — threw under Hermes. A browser sets the flag itself (and an http page’s false is left alone: ‘insecure’); an app’s JS VM is not a web page and has none.

"native" | "polyfilled" | "insecure"