Personality Test - not appearing when embedded as an iframe

When we embed this personality test in a page in our university web site nothing appears - just blank space. I tested it on Safari and Chrome, Windows and Mac.

https://h5p.org/node/26423

Here is what it looks like on our web site:

http://www2.warwick.ac.uk/services/its/servicessupport/academictechnology/elearn_archive/sandbox-old/h5pembedbug

It also doesn't work when embedded into a Moodle page or on a WordPress page.

Yes, we've had the same issue. I notice in your example this error shows up in the console:

Uncaught SecurityError: Blocked a frame with origin "https://h5p.org" from accessing a frame with origin "http://www2.warwick.ac.uk".  The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.

However, I've had no luck embedding in http to http or https to https, either; I was getting an error about the domain not matching. 

 

Thanks for looking. Yes, I checked that too. Other content types from the h5p site work perfectly when embedded (via https) in all of the pages I tried (our cms, Moodle, Wordpress, Moodle Rooms). But not this one.

fnoks's picture

I think this is related to a problem that I fixed (i.e the personality quiz trying to access the page it is embedded to) here: https://github.com/LumeniaAS/h5p-personality-quiz/commit/49166cf5fbc

Since this H5P is created and maintained by someone else, I need to get them to release a new version. Will try to get them to do so asap.

 

fnoks's picture

Now this should be fixed :)

Thank you for reporting!

Thank you!

Great, thanks. It's going to be used with 1st year French Studies students at Warwick University. They will be very happy.