<iframe src="https://example.com" allow="geolocation *"></iframe>Permissions-Policy header / notebook
Permissions-Policy header
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
<iframe
src="https://example.com"
allow="geolocation 'self' https://a.example.com https://b.example.com"></iframe><iframe
src="https://example.com"
allow="geolocation 'self' https://a.example.com https://b.example.com; fullscreen 'none'"></iframe><iframe src="https://example.com" allow="geolocation 'src'"></iframe>
<iframe src="https://example.com" allow="geolocation"></iframe><iframe src="https://trusted-ad-network.com" allow="geolocation"></iframe><iframe src="https://rogue-origin-example.com" allow="geolocation"></iframe>navigator.geolocation.getCurrentPosition(
() => {},
() => {},
);