You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cached thumbnails in Redis are not being show - we get only a white placeholder.
The browser console showed an error the showing that an image blob: url could not be show because it does not comply with Content Security Policy directive: "img-src 'self' data:"
Cached thumbnails in Redis are not being show - we get only a white placeholder.
The browser console showed an error the showing that an image
blob: url
could not be show because it does not comply withContent Security Policy directive: "img-src 'self' data:"
How to reproduce the bug
Environment
3.0.0
3.10.13
ALERT_REPORTS, THUMBNAILS, THUMBNAILS_SQLA_LISTENERS, ENABLE_TEMPLATE_PROCESSING, GENERIC_CHART_AXES, ALLOW_ADHOC_SUBQUERY, DASHBOARD_RBAC, EMBEDDED_SUPERSET
Checklist
How we solved it
Firstly we tried
TALISMAN_ENABLED=False
flag in setting to confirm this is an issue. With CSP completely disabled thumbnails worked fine.Next we took a look to default settings in confing.py these are currently:
Finally:
We added
blob:
to image src making it"img-src": ["'self'", "data:","blob:"]
retaining all CS policies. And the thumbnails were back on!The text was updated successfully, but these errors were encountered: