chore: Un-revert enabling CSP by default (#24543)

This commit is contained in:
Kamil Gabryjelski
2023-06-29 17:38:17 +02:00
committed by GitHub
parent bb1db9e86f
commit 38df1a873f
15 changed files with 120 additions and 45 deletions

View File

@@ -606,7 +606,11 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
# Talisman
talisman_enabled = self.config["TALISMAN_ENABLED"]
talisman_config = self.config["TALISMAN_CONFIG"]
talisman_config = (
self.config["TALISMAN_DEV_CONFIG"]
if self.superset_app.debug
else self.config["TALISMAN_CONFIG"]
)
csp_warning = self.config["CONTENT_SECURITY_POLICY_WARNING"]
if talisman_enabled: