This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-site.git


The following commit(s) were added to refs/heads/master by this push:
     new d5657f4791 custom-theme/talks: Configure Content-Security-Policy for 
Youtube
d5657f4791 is described below

commit d5657f4791ae3b1caf00d2a8a438d1bb5d8de86b
Author: Piotr Narajowski <[email protected]>
AuthorDate: Mon Apr 14 12:23:27 2025 +0200

    custom-theme/talks: Configure Content-Security-Policy for Youtube
    
    .htaccess file is introduced to configure Content-Security-Policy
    for Youtube. This is based on example on how to embed yt videos
    from privacy-website.
---
 custom-theme/.htaccess | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/custom-theme/.htaccess b/custom-theme/.htaccess
new file mode 100644
index 0000000000..ffc66ce1a4
--- /dev/null
+++ b/custom-theme/.htaccess
@@ -0,0 +1,3 @@
+# Allow loading YouTube content after ensuring consent.
+# Additional allowances to be coordinated with privacy team
+Header set Content-Security-Policy "frame-src https://www.youtube-nocookie.com 
https://www.youtube.com";

Reply via email to