You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by sh...@apache.org on 2025/12/27 10:45:27 UTC

(airflow-site) branch fix-content-security-policy created (now db9a90435c)

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

shahar pushed a change to branch fix-content-security-policy
in repository https://gitbox.apache.org/repos/asf/airflow-site.git


      at db9a90435c Fix content security policy

This branch includes the following new commits:

     new db9a90435c Fix content security policy

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(airflow-site) 01/01: Fix content security policy

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shahar pushed a commit to branch fix-content-security-policy
in repository https://gitbox.apache.org/repos/asf/airflow-site.git

commit db9a90435cc14bce918a6cade61bfa236deb5593
Author: Shahar Epstein <60...@users.noreply.github.com>
AuthorDate: Sat Dec 27 12:42:05 2025 +0200

    Fix content security policy
---
 sphinx_airflow_theme/sphinx_airflow_theme/layout.html | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sphinx_airflow_theme/sphinx_airflow_theme/layout.html b/sphinx_airflow_theme/sphinx_airflow_theme/layout.html
index cad3911e2a..a3a2eb61c5 100644
--- a/sphinx_airflow_theme/sphinx_airflow_theme/layout.html
+++ b/sphinx_airflow_theme/sphinx_airflow_theme/layout.html
@@ -257,6 +257,7 @@
         <meta http-equiv="Content-Type" content="text/html; charset={{ encoding }}" />
     {%- endif %}
     <meta name="viewport" content="width=device-width, initial-scale=1">
+    <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://www.apachecon.com/ https://www.communityovercode.org/ https://*.apache.org/ https://apache.org/ https://*.scarf.sh/; font-src 'self' https://fonts.gstatic.com data:;">
     {{- metatags }}
     {%- block htmltitle %}
         <title>{{ title|striptags|e }}{{ titlesuffix }}</title>