You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2023/10/13 12:15:10 UTC

[superset] 01/06: fix: thubmnails loading - Talisman default config (#25486)

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

michaelsmolina pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 53b84b9664e9d4586366ff5bb62f34ca0e0fd62a
Author: Igor Khrol <kh...@gmail.com>
AuthorDate: Wed Oct 11 20:30:09 2023 +0300

    fix: thubmnails loading - Talisman default config (#25486)
    
    (cherry picked from commit 52f631a038dae9d353bae6e0f4cde1f96b1899f1)
---
 superset/config.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/config.py b/superset/config.py
index bda7d0e5f0..4233799d0d 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -1407,7 +1407,7 @@ TALISMAN_ENABLED = utils.cast_to_boolean(os.environ.get("TALISMAN_ENABLED", True
 TALISMAN_CONFIG = {
     "content_security_policy": {
         "default-src": ["'self'"],
-        "img-src": ["'self'", "data:"],
+        "img-src": ["'self'", "blob:", "data:"],
         "worker-src": ["'self'", "blob:"],
         "connect-src": [
             "'self'",
@@ -1429,7 +1429,7 @@ TALISMAN_CONFIG = {
 TALISMAN_DEV_CONFIG = {
     "content_security_policy": {
         "default-src": ["'self'"],
-        "img-src": ["'self'", "data:"],
+        "img-src": ["'self'", "blob:", "data:"],
         "worker-src": ["'self'", "blob:"],
         "connect-src": [
             "'self'",