Log inRegister
You are here: Boossy » WikiFoswiki » FwEmbedYoutube

Embed YouTube

04 June 2026 - 08:08 | Version 3 |

foswiki.org topic

https://foswiki.org/System/OEmbedPlugin#Youbtube

Solution: CSP + referrerpolicy

  • FOSWIKI / Configure > Security and Authentication
  • HTTP Security Headers
  • {Http}{ContentSecurityPolicy}{'frame-src'}: I added * after 'self' (according to the response headers of the Foswiki.org site)
  • I added the referrerpolicy="strict-origin-when-cross-origin" directive to the iframe
  • but in future, I could use the OEmbedPlugin - this also requires the CSP for frame-src to be correct!

Using the YouTube embed code

This content is blocked. Contact the site owner to fix the issue.

Using the OEmbedPlugin

First looks good, but when clicking the Play button, you also get "This content is blocked. Contact the site owner to fix the issue."

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback