From 0bb1ef057aca0678fc997a484151fdcabe055d01 Mon Sep 17 00:00:00 2001 From: Daniel Vaz Gaspar Date: Wed, 13 Dec 2023 11:45:14 +0000 Subject: [PATCH] chore: improve CSP add base uri restriction (#26251) (cherry picked from commit 578a899152719415c65c24055f4378b838ded435) --- superset/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superset/config.py b/superset/config.py index e9e99a6d93a5f..45e001187ceaa 100644 --- a/superset/config.py +++ b/superset/config.py @@ -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", @@ -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",