Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The credentialless
property of the HTMLIFrameElement
interface indicates whether the <iframe>
is credentialless, meaning that documents inside will be loaded using new, ephemeral contexts.
Those contexts do not have access to their network, cookies and storage data associated with their origin. Instead, they use new ones, local to the top-level document lifetime. It means any data stored won't be accessible anymore after the user navigates away from the page or reloads it.
In return, the Cross-Origin-Embedder-Policy
(COEP) embedding rules can be lifted, so documents with COEP set can embed third-party documents that do not. See IFrame credentialless for a deeper explanation.