Limited support Use with care and provide a fallback when broad support matters.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
88
88
88
HTML attribute
allow
60
79
74
11.1
60
11.3
DOM API

The allow property of the HTMLIFrameElement interface indicates the Permissions Policy specified for this element. The policy defines what features are available to the element (for example, access to the microphone, camera, battery, web-share, etc.) based on the origin of the request.

60
79
74
11.1
60
11.3
Other
http.headers.Permissions-Policy.wildcards
Experimental

Wildcards in allowlist origins

108
108
108
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

HTML
<!-- iframeのPermissions Policy -->
<iframe src="https://example.com"
  allow="camera 'self'; microphone 'none'; geolocation 'none'">
</iframe>
<!-- HTTPヘッダー: Permissions-Policy: camera=(), microphone=() -->

Use cases

  • Use Permissions policy

    Use Permissions policy when standard HTML needs a more specific platform feature, semantic signal, or browser capability.

  • Handle edge cases

    Apply Permissions policy to solve a focused requirement without redesigning the whole page architecture.

Cautions

  • Test Permissions policy in your target browsers and input environments before depending on it as a primary behavior.
  • Provide a fallback path or acceptable degradation strategy when support is still limited.

Accessibility

  • Make sure Permissions policy supports the intended task without making the page harder to perceive, understand, or operate.