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
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:
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.
The manual solution is to build the tags and append the &origin=http://example.com parameter to the URLs. Quote:
As an extra security measure, you should also include the origin parameter to the URL, specifying the URL scheme (http:// or https://) and full domain of your host page as the parameter value. While origin is optional, including it protects against malicious third-party JavaScript being injected into your page and hijacking control of your YouTube player.