Skip to content

Commit

Permalink
fix(docs): even more CSP adjustments... (apache#27278)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas authored and qleroy committed Apr 28, 2024
1 parent 82a455d commit 52a998c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/static/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ 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'; \
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; \
"

0 comments on commit 52a998c

Please sign in to comment.