You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by as...@apache.org on 2024/02/27 22:56:25 UTC

(superset-site) branch asf-site updated: deploying docs: fix(docs): even more CSP adjustments... (#27278) (apache/superset@c320b95be982b51497201dbd260263b555ebf50e)

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

asf-ci-deploy pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/superset-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new e8e0aa5bd deploying docs: fix(docs): even more CSP adjustments... (#27278) (apache/superset@c320b95be982b51497201dbd260263b555ebf50e)
e8e0aa5bd is described below

commit e8e0aa5bd924c2e591bf4f9f884ec142a9e9083b
Author: apache <de...@superset.apache.org>
AuthorDate: Tue Feb 27 22:56:21 2024 +0000

    deploying docs: fix(docs): even more CSP adjustments... (#27278) (apache/superset@c320b95be982b51497201dbd260263b555ebf50e)
---
 .htaccess | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.htaccess b/.htaccess
index aa0c75e32..5453e5eb8 100644
--- a/.htaccess
+++ b/.htaccess
@@ -22,7 +22,7 @@ RewriteRule ^(.*)$ https://superset.apache.org/$1 [R,L]
 RewriteCond %{HTTP_HOST} ^superset.incubator.apache.org$ [NC]
 RewriteRule ^(.*)$ https://superset.apache.org/$1 [R=301,L]
 
-Header set Content-Security-Policy "default-src 'self'; img-src *;"
+# Header set Content-Security-Policy "default-src 'self'; img-src *;"
 
 Header set Content-Security-Policy "default-src 'self'; \
 script-src 'self'; \
@@ -30,6 +30,7 @@ img-src 'self' https://static.scarf.sh *; \
 style-src 'self' https://fonts.googleapis.com; \
 script-src-elem 'self' 'unsafe-inline' https://www.googletagmanager.com https://www.google-analytics.com; \
 style-src-elem 'self' 'unsafe-inline' https://fonts.googleapis.com https://analytics.apache.org https://www.bugherd.com; \
+frame-ancestors 'self' https://preset.io; \
 font-src 'self' https://fonts.gstatic.com; \
 frame-src 'self' https://calendar.google.com https://preset.io https://sidebar.bugherd.com https://unpkg.com; \
 "