Sets or gets the browser permissions for the HTML Component.
Setting the allow property controls which browser features and APIs
the HTML Component can access. This helps secure a site by restricting
what embedded content can do.
The allow property accepts a string of permission names
separated by semicolons. The possible permissions include:
camera: Allows access to the camera.encrypted-media: Allows playback of encrypted media content using the Encrypted Media Extensions API. Required for DRM-protected content like premium video streaming services.fullscreen: Allows the HTML Component content to request fullscreen mode. By default, fullscreen isn't allowed unless explicitly permitted.For example: "camera; encrypted-media; fullscreen"
Getting the allow property returns the current permissions
for the HTML Component.
Note: You can also set the fullscreen permission by calling the allowFullScreen() function,
which automatically adds fullscreen to the existing allow property value.