Youtube embed: Unsafe JavaScript attempt to access frame

后端 未结 5 1060
感动是毒
感动是毒 2020-12-04 16:41

We have a Wicket app with a page that includes an embedded Youtube video. The video embeds and plays fine, but apparently it causes the rest of the page to not render- it se

5条回答
  •  天涯浪人
    2020-12-04 17:00

    The Unsafe JavaScript attempt to access frame error has nothing to do with your page not rendering. Broken markup (e.g. a missing ) is the most probable reason.

    As for the Unsafe JavaScript attempt to access frame error, you have a few options:

    1. Easiest solution is to use the IFrame Player API instead of manually adding iframe tags. The API is a piece of JavaScript that generates the iframe tag for you and adds the parameters that will (or should) eliminate the frame access error. Here are the instructions for using IFrame Player API to load a player.

    2. The manual solution is to build the