Chrome 我只想不显示此日志(无法识别的功能:'ch-ua-form-factor')

nfzehxib  于 2023-09-28  发布在  Go
关注(0)|答案(1)|浏览(147)

我只是不想在Chrome显示此日志
Permissions-Policy标头出错:无法识别的功能:'ch-ua-form-factor'。

<iframe
        width="100%"
        height="100%"
        :src="item.src"
        title="YouTube video player"
        frameborder="0"
        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;"
        allowfullscreen
     ></iframe>
sg3maiej

sg3maiej1#

下面是在Chrome中隐藏日志的代码:

<iframe
    width="100%"
    height="100%"
    :src="item.src"
    title="YouTube video player"
    frameborder="0"
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;"
    allowfullscreen
    sandbox="allow-same-origin allow-scripts allow-popups allow-presentation"
></iframe>

我已经在iframe标签中添加了sandbox属性,并赋予了特定的权限来禁止Chrome中的日志。

相关问题