Skip to content

Commit

Permalink
chore: improve CSP add base uri restriction (apache#26251)
Browse files Browse the repository at this point in the history
(cherry picked from commit 578a899)
  • Loading branch information
dpgaspar authored and josedev-union committed Jan 22, 2024
1 parent c46ac34 commit 0bb1ef0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1425,6 +1425,7 @@ def EMAIL_HEADER_MUTATOR( # pylint: disable=invalid-name,unused-argument
# If you want Talisman, how do you want it configured??
TALISMAN_CONFIG = {
"content_security_policy": {
"base-uri": ["'self'"],
"default-src": [
"'self'",
"https://*.clarity.ms",
Expand Down Expand Up @@ -1466,6 +1467,7 @@ def EMAIL_HEADER_MUTATOR( # pylint: disable=invalid-name,unused-argument
# React requires `eval` to work correctly in dev mode
TALISMAN_DEV_CONFIG = {
"content_security_policy": {
"base-uri": ["'self'"],
"default-src": [
"'self'",
"https://*.clarity.ms",
Expand Down

0 comments on commit 0bb1ef0

Please sign in to comment.