admin管理员组

文章数量:1612139

AudioCapture permission has been blocked because of a Feature Policy applied to the current document

	使用<iframe>标签,如果<iframe>标签所在页面与嵌入的子页面域名不同或者端口不同,并且在子页面
中调用 摄像头或者耳麦,则会被浏览器安全策略警告并且拒绝提供调用。
这时需要在<iframe>添加以下属性:
<iframe src="https://example" allow="geolocation; microphone; camera"></iframe>

如果子页面中有需要提交的表单、提示框等,则要多添加一个sandbox=“allow-forms allow-same-origin allow-scripts allow-top-navigation allow-modals” 属性。

本文标签: blockedfeatureAudioCapturePermissionCurrent