The embed the code doesn't shows on external sites

Bonjour,

I've installed H5P module on my wordpress. Everything went fine.
I've published a test here : https://blog.pourpenser.net/test-page/

But when I try to embed the code to share :

<iframe src="https://blog.pourpenser.net/wp-admin/admin-ajax.php?action=h5p_embed&id=2" width="843" height="1625" frameborder="0" allowfullscreen="allowfullscreen"></iframe><script src="https://blog.pourpenser.net/wp-content/plugins/h5p/h5p-php-library/js/h5..." charset="UTF-8"></script>

I got an error saying blog.pourpenser.net doesn't autorize the share.
I tried to find where I should change on the options but I do not find…

Thanks for the help!

Albert

 

Summary: 
embed code doesn't show on external sites
Content types: 
otacke's picture

Hi Albert!

The server at https://blog.pourpenser.net (running on nginx) is configured in a way that does not allow its contents to embedded elsewhere. That's what the message about the X-Frame-Option is telling you: "sameorigin" means the server does only allow to embed content from your page if the calling website has the same origin - so your own site. You will find more information about this topic including a hint how to configure nginx at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options.

Best,
Oliver