Text of developer.mozilla.org › en-US › docs › Web › API › HTMLIFrameElement › credentialless as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

HTMLIFrameElement: credentialless property - Web APIs | MDN

Skip to main content Skip to search HTMLIFrameElement: credentialless property Limited availability This feature is not Baseline because it does not work in some of the most widely-used browsers. Want more browser support for this feature? Tell us why. See full compatibility Learn more 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. Value A boolean. The default value is false ; set it to true to make the <iframe> credentialless. Examples Get Specify a credentialless <iframe> like so: html <iframe src="https://en.wikipedia.org/wiki/Spectre_(security_vulnerability)" title="Spectre vulnerability Wikipedia page" width="960" height="600" credentialless></iframe> Return the credentialless property value: js const iframeElem = document.querySelector("iframe"); console.log(iframeElem.credentialless); // will return true in supporting browsers Set Alternatively, specify the minimum of details in the HTML: html <iframe width="960" height="600"> </iframe> And set credentialless to true then load the <iframe> contents via script: js const iframeElem = document.querySelector("iframe"); iframeElem.credentialless = true; iframeElem.title = "Spectre vulnerability Wikipedia page"; iframeElem.src = "https://en.wikipedia.org/wiki/Spectre_(security_vulnerability)"; Specifications Specification Iframe credentialless # dom-htmliframeelement-credentialless Browser compatibility See also IFrame credentialless <iframe> Help improve MDN Learn how to contribute This page was last modified on Dec 3, 2025 by MDN contributors .

View this page on GitHub • Report a problem with this content