I try to add interactive H5P
features to my bookdown
.
You can see them on this bookdown
https://www.bookdown.org/pbaumgartner/itns-exercises/chapter-01.html
See how the author embeds H5P elements hosted on his Wordpress site https://github.com/petzi53/itns-exercises/blob/master/001-research-questions.Rmd as iframe
like this <iframe src="https://peter.baumgartner.name/wp-admin/admin-ajax.php?action=h5p_embed&id=49" width="958" height="665" frameborder="0" allowfullscreen="allowfullscreen"></iframe><script src="https://peter.baumgartner.name/wp-content/plugins/h5p/h5p-php-library/js/h5p-resizer.js" charset="UTF-8"></script>
I manage to embed H5P iframe
when it comes from https://h5p.org like this
<iframe src="https://h5p.org/h5p/embed/1295995" width="1090" height="245" frameborder="0" allowfullscreen="allowfullscreen" allow="geolocation *; microphone *; camera *; midi *; encrypted-media *" title="SOEP Intrpduction"></iframe><script src="https://h5p.org/sites/all/modules/h5p/library/js/h5p-resizer.js" charset="UTF-8"></script>
I have a H5P element on my website https://marco-kuehne.com/wp-admin/admin-ajax.php?action=h5p_embed&id=2 but when embedded my browser says
"Website will not allow Firefox to display the page if another site has embedded it"
The problem seems to be on my server. Anyone knows how to configure a server to allow embedding this H5P element? Thank you