Allows a Drupal 8 site offering a library of H5P (https://h5p.org) learning objects for external embedding, we need to override Drupal 8's default X-Frame-Options header to allow remote sites to embed.
\ No newline at end of file
For a Drupal8 site offering a library of H5P (https://h5p.org) learning objects for external embedding, we need to override Drupal8's default X-Frame-Options header setting of "SAMEORIGIN" which prohibits embedding content. So, only in the case of H5P objects, which have a path starting with /h5p/[ID]/embed, we remove that header.
description:For a Drupal8 site offering a library of H5P (https://h5p.org) learning objects for external embedding, we need to override Drupal8's default X-Frame-Options header setting of "SAMEORIGIN" which prohibits embedding content. So, only in the case of H5P objects, which have a path starting with /h5p/[ID]/embed, we remove that header.
package:OERu Custom
name:Allow H5P Embed
description:Allow external sites to embed H5P learning objects created and/or hosted on this site.