The allow Attribute
The allow attribute controls the iframe's access to browser APIs like camera, microphone, geolocation, and fullscreen.
Grant only the specific permissions the embedded content actually needs.
The allow attribute controls the iframe's access to browser APIs like camera, microphone, geolocation, and fullscreen.
Grant only the specific permissions the embedded content actually needs.
<!-- Video call embed needs camera and microphone -->
<iframe
src="https://meet.example.com/room"
allow="camera; microphone; fullscreen"
></iframe>
<!-- Payment widget -->
<iframe
src="https://pay.example.com"
allow="payment"
></iframe>
The allow attribute is the Permissions Policy for iframes — always use least privilege and only grant what is needed.