MDN self-hosted library · e01.org

Permissions Policy

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<iframe src="<origin>" allow="<directive> <allowlist>"></iframe>
html
<iframe src="https://example.com" allow="geolocation 'none'"></iframe>
html
<iframe
  src="https://example.com"
  allow="geolocation 'self' https://a.example.com https://b.example.com"></iframe>
html
<iframe
  src="https://example.com"
  allow="geolocation 'self' https://a.example.com https://b.example.com; fullscreen 'none'"></iframe>
html
<iframe src="https://example.com" allow="geolocation 'src'"></iframe>
<iframe src="https://example.com" allow="geolocation"></iframe>
html
<iframe src="https://trusted-ad-network.com" allow="geolocation"></iframe>
html
<iframe src="https://rogue-origin-example.com" allow="geolocation"></iframe>