Moodle self-hosted H5p activities are not displayed after embedding them into lesson pages
Submitted by abraxiano on Tue, 12/17/2019 - 16:44
Hi,
I have created several h5p activities prior to embedding them to a moodle lesson. After embedding a few activities throughout the pages within the lesson, I ve realised these are not displayed at all.
However if I host these activities on a third party site like h5p.com, embedding them works fine.
I am running apache -Centos 7 server- upon which I mounted Moodle 3.7. I have checked some of the troubleshooting documentation regarding php extensions and files and couldn't find anything. Any thoughts?
BV52
Tue, 12/17/2019 - 18:10
Permalink
Hi abraxiano,Do you see any
Hi abraxiano,
Do you see any error messages? If you go to the browser console do you have any errors there?
-BV
abraxiano
Tue, 12/17/2019 - 18:32
Permalink
Console
Hi,
thank you for replying so promptly,
I did get an error message from the console, please see below
abraxiano
Wed, 12/18/2019 - 06:20
Permalink
As reported in the console,
As reported in the console, it is an x frame issue.
I fixed by appending the following onto the httpd.conf file <Header always append X-Frame-Options "sameorigin">
then restarted apache <systemctl restart httpd>
and doubled checked if the new directive worked using a web utility <https://gf.dev/x-frame-options-test>
Thank u