Iframe SandBox is blocking embed object

馋奶兔 提交于 2019-12-21 13:22:32

问题


Hy here is a examle Example Why when i use

<IFRAME sandbox="allow-forms allow-scripts" SRC="http://roshare.info/embedx-xcnvxz71l8fb-699x380.html" FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=699 HEIGHT=400></IFRAME>

sandbox i dont see the player .. i want to use sandbox just to block pop-ups but looks like if i use it i dont see the player is there any allow-objects ?

I have also a no sandbox example on that page and it works ..


回答1:


You're correct. The sandbox will block plugin content inside the frame. Unlike other aspects of the sandbox, there is no mechanism for enabling plugins inside a sandboxed iframe. http://www.html5rocks.com/en/tutorials/security/sandboxed-iframes/#granular-control-over-capabilities has more detail if you're curious.



来源:https://stackoverflow.com/questions/15234184/iframe-sandbox-is-blocking-embed-object

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!