I’m trying to add a google group to my page using the “HTML iframe” element.
When I either add the google group URL or the embed code supplied by Google Groups, I get no iframe load and the console throws an error:
Invalid 'X-Frame-Options' header encountered when loading "https://....etc"
and
Unsafe JavaScript attempt to initiate navigation for frame with URL "https://.....etc"
Here’s the embed code:
<iframe id="forum_embed"
src="javascript:void(0)"
scrolling="no"
frameborder="0"
width="900"
height="700">
</iframe>
<script type="text/javascript">
document.getElementById('forum_embed').src =
'https://groups.google.com/forum/embed/?place=forum/simons-web-test-group'
+ '&showsearch=true&showpopout=true&showtabs=false'
+ '&parenturl=' + encodeURIComponent(window.location.href);
</script>
Is there something I’m missing?
Any help would be greatly appreciated.