Google chrome Google Chrome在跨源Iframes VS Object中拒绝使用权限
最近Google Chrome进行了更改,默认情况下,跨源iFrame中包含的内容不能请求或使用以下权限:Google chrome Google Chrome在跨源Iframes VS Object中拒绝使用权限,google-chrome,iframe,getusermedia,html-object,Google Chrome,Iframe,Getusermedia,Html Object,最近Google Chrome进行了更改,默认情况下,跨源iFrame中包含的内容不能请求或使用以下权限: Geolocation (getCurrentPosition and watchPosition) Midi (requestMIDIAccess) Encrypted media extensions (requestMediaKeySystemAccess) Microphone, Camera (getUserMedia) 因此,我们必须对iframe使用allow属性,如
Geolocation (getCurrentPosition and watchPosition)
Midi (requestMIDIAccess)
Encrypted media extensions (requestMediaKeySystemAccess)
Microphone, Camera (getUserMedia)
因此,我们必须对iframe使用allow属性,如下所示:
<iframe src="https://example.com" allow="geolocation; microphone; camera"></iframe>
我想知道,如果我使用对象标记而不是iframe,它会产生怎样的效果
提前谢谢