Embed Not Showing From My Drupal 7 Site


I have created a Drupal 7 website and installed the H5P modules. All looks good and works in creating interactive content. When I go to embed something, it does not show up on the page it is being embedded on. here is the embed code that is generated. 

<iframe src="https://www.pluscenterh5ptool.com/h5p/embed/7" width="688" height="448" frameborder="0" allowfullscreen="allowfullscreen"></iframe><script src="https://www.pluscenterh5ptool.com/sites/all/modules/h5p/library/js/h5p-r..." charset="UTF-8"></script>


My Suspicion is that I don't have a Drupal or PHP setting Correct. I have called my host (go daddy) and I am not generating any errors. I am using chrome on a mac. 

Thanks for any suggestions.



icc's picture

It looks like your web site is set up to block other sites from embedding content from your site through a header called 'X-Frame-Options'. If you open your browser's console (Ctrl+Shift+J in Chrome) on the page you're inserting the embed code you should see the error message.

I'm guessing that this header is being set by Drupal and not your web server. As of Drupal 7.50 embedding is blocked by default: https://www.drupal.org/node/2735873



Your link and diagnoses were spot on! Just needed to add the line to the settings.php file.  Thank you so much!