You are viewing a plain text version of this content. The canonical link for it is here.
Posted to privacy-commits@apache.org by ni...@apache.org on 2025/11/21 17:36:15 UTC
(privacy-website) branch main updated: Clarify CSP exceptions needed by examples (#64)
This is an automated email from the ASF dual-hosted git repository.
niallp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/privacy-website.git
The following commit(s) were added to refs/heads/main by this push:
new 054d61c Clarify CSP exceptions needed by examples (#64)
054d61c is described below
commit 054d61c4705f0aa999dffb809bdf88e6edc108eb
Author: Sebb <se...@users.noreply.github.com>
AuthorDate: Fri Nov 21 17:36:09 2025 +0000
Clarify CSP exceptions needed by examples (#64)
---
examples/youtube-html/.htaccess | 2 ++
examples/youtube-html/with-youtube-api.html | 2 +-
examples/youtube-html/with-youtube-embeds.html | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/examples/youtube-html/.htaccess b/examples/youtube-html/.htaccess
index f61f7a2..7df3bc9 100644
--- a/examples/youtube-html/.htaccess
+++ b/examples/youtube-html/.htaccess
@@ -1,3 +1,5 @@
# Allow loading YouTube content after ensuring consent.
# Additional allowances to be coordinated with privacy team
+# https://www.youtube-nocookie.com is needed for with-youtube-embeds.html
+# https://www.youtube.com is needed for with-youtube-api.html
SetEnv CSP_PROJECT_DOMAINS "https://www.youtube-nocookie.com https://www.youtube.com"
diff --git a/examples/youtube-html/with-youtube-api.html b/examples/youtube-html/with-youtube-api.html
index a7979be..f2f17b2 100644
--- a/examples/youtube-html/with-youtube-api.html
+++ b/examples/youtube-html/with-youtube-api.html
@@ -55,7 +55,7 @@
<pre>
# Allow loading YouTube content after ensuring consent.
# Additional allowances to be coordinated with privacy team
- SetEnv CSP_PROJECT_DOMAINS "https://www.youtube-nocookie.com https://www.youtube.com"
+ SetEnv CSP_PROJECT_DOMAINS "https://www.youtube.com"
</pre>
</div>
<h2>Pelican</h2>
diff --git a/examples/youtube-html/with-youtube-embeds.html b/examples/youtube-html/with-youtube-embeds.html
index ddcabab..a85fef1 100644
--- a/examples/youtube-html/with-youtube-embeds.html
+++ b/examples/youtube-html/with-youtube-embeds.html
@@ -70,7 +70,7 @@
<pre>
# Allow loading YouTube content after ensuring consent.
# Additional allowances to be coordinated with privacy team
- SetEnv CSP_PROJECT_DOMAINS "https://www.youtube-nocookie.com https://www.youtube.com"
+ SetEnv CSP_PROJECT_DOMAINS "https://www.youtube-nocookie.com"
</pre>
</div>
</body>
---------------------------------------------------------------------
To unsubscribe, e-mail: privacy-commits-unsubscribe@apache.org
For additional commands, e-mail: privacy-commits-help@apache.org