Flash not work in iframe within sandbox attribute

后端 未结 1 1053
[愿得一人]
[愿得一人] 2021-02-08 20:23

I\'ve used iframe to show some pages.These pages may contain an adobe flash content like a video. my problem is that the abode flash doesn

相关标签:
1条回答
  • 2021-02-08 20:43

    Short answer: you can't execute flash plugin in a sandboxed iframe.

    The spec : http://www.w3.org/TR/html5/embedded-content-0.html#attr-iframe-sandbox

    Plugins that cannot be secured are disabled in sandboxed browsing contexts because they might not honor the restrictions imposed by the sandbox (e.g. they might allow scripting even when scripting in the sandbox is disabled). User agents should convey the danger of overriding the sandbox to the user if an option to do so is provided.

    For comprehensive information about sandbox attribute: http://blog.dareboost.com/en/2015/07/securing-iframe-sandbox-attribute/

    0 讨论(0)
提交回复
热议问题