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

ntimofeev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 2baba6e0d Add CSP header to allow content from youtube
2baba6e0d is described below

commit 2baba6e0d7b49c2d51d9db016ab132b17cecd4b0
Author: Nikita Timofeev <stari...@gmail.com>
AuthorDate: Wed Apr 10 13:55:55 2024 +0400

    Add CSP header to allow content from youtube
---
 src/main/site/layouts/partials/head.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/site/layouts/partials/head.html 
b/src/main/site/layouts/partials/head.html
index ed5432218..484a70088 100644
--- a/src/main/site/layouts/partials/head.html
+++ b/src/main/site/layouts/partials/head.html
@@ -13,6 +13,8 @@
         <meta name="msapplication-TileImage" 
content="/img/favicon/mstile-144x144.png">
         <meta name="msapplication-config" 
content="/img/favicon/browserconfig.xml">
         <meta name="theme-color" content="#ffffff">
+        <meta http-equiv="Content-Security-Policy"
+              content="default-src 'self'; child-src 'none'; frame-src 
youtube.com https://www.youtube.com;";>
         <link rel="stylesheet" href="{{ "css/styles.css" | absURL }}"/>
         <script src="{{ "js/bundle.js" | absURL }}"></script>
         <script 
src="https://www.apachecon.com/event-images/snippet.js";></script>

Reply via email to