我用过iframe
显示一些页面。这些页面可能包含adobe flash
内容如视频。
我的问题是abode flash
不执行在iframe
在沙箱属性内。
我的iframe
tag :
<iframe sandbox="allow-popups allow-pointer-lock allow-same-origin allow-forms allow-scripts" src="http://example.com"></iframe>
简短的回答:您无法在沙盒 iframe 中执行 flash 插件。
规格:http://www.w3.org/TR/html5/embedded-content-0.html#attr-iframe-sandbox http://www.w3.org/TR/html5/embedded-content-0.html#attr-iframe-sandbox
无法保护的插件在沙盒浏览中被禁用
因为他们可能不遵守法律所施加的限制
沙箱(例如,即使在沙箱中编写脚本,它们也可能允许编写脚本)
沙箱已禁用)。用户代理应传达以下危险
如果提供了选项,则将沙箱覆盖给用户。
有关沙箱属性的全面信息:http://blog.dareboost.com/en/2015/07/securing-iframe-sandbox-attribute/ http://blog.dareboost.com/en/2015/07/securing-iframe-sandbox-attribute/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)