From a33f8439d1d0bfc25bed3e1c4928bfc96370efa3 Mon Sep 17 00:00:00 2001 From: "nikolay.borovenskiy" Date: Fri, 27 Oct 2023 14:38:06 +0300 Subject: [PATCH] chore: [ZNO-2102] Extends content security policy to be able fetch image sources for connect-src --- superset/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superset/config.py b/superset/config.py index bd0b298d585e6..4096c70021fb5 100644 --- a/superset/config.py +++ b/superset/config.py @@ -1418,6 +1418,7 @@ def EMAIL_HEADER_MUTATOR( # pylint: disable=invalid-name,unused-argument "worker-src": ["'self'", "blob:"], "connect-src": [ "'self'", + "https:", "https://api.mapbox.com", "https://events.mapbox.com", ], @@ -1436,6 +1437,7 @@ def EMAIL_HEADER_MUTATOR( # pylint: disable=invalid-name,unused-argument "worker-src": ["'self'", "blob:"], "connect-src": [ "'self'", + "https:", "https://api.mapbox.com", "https://events.mapbox.com", ],