Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2020.
The allow property of the HTMLIFrameElement interface indicates the Permissions Policy specified for this <iframe> element. The policy defines what features are available to the <iframe> element (for example, access to the microphone, camera, battery, web-share, etc.) based on the origin of the request.
The Permissions Policy specified by the allow attribute implements a further restriction on top of the policy specified in the Permissions-Policy header. It doesn't replace it.
See <iframe>'s Permissions Policy syntax for more details.
It reflects the allow attribute of the <iframe> element.
A string indicates the Permissions Policy specified for this <iframe> element, each policy must be separated by space.
See Permissions Policy in <iframe> element for more available examples.
| HTML # dom-iframe-allow |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Mar 13, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.