HTMLFencedFrameElement:allow 属性
Deprecated
To be removed
This feature is pending removal from browsers. Using it now may lead to broken functionality in future updates.
Following the announcement that Chrome will maintain its current approach to third-party cookies, Chrome decided to withdraw certain Privacy Sandbox features including the <fencedframe> element and related APIs.
>
HTMLFencedFrameElement 的 allow 属性用于获取并设置对应 <fencedframe> 元素的 allow 属性的值,该属性表示内容首次嵌入时应用的权限策略。
并非所有权限策略都允许在围栏框架中使用。允许的权限列在围栏框架可用的权限策略中——这些权限是加载来自指定 API 的围栏框架内容所必需的。如果不设置 allow 属性,那么默认情况下将允许这些权限。如果想要缩小权限集,需要确保正在使用的 API 所需的所有权限都已在 allow 属性中设置。