You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:14:38 UTC
Re: [D] Image is blank during pdf export in Superset UI [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Image is blank during pdf export in Superset UI
<!-- Answer -->
Thanks for the details! Since you're using external image URLs in Markdown components and Handlebars charts, this is almost certainly a **CSP (Content Security Policy) issue**.
The key insight is that [PDF export uses the `connect-src` directive to fetch external images](https://github.com/apache/superset/issues/36268), not `img-src` (which is what the dashboard uses for normal viewing). This is why your images may display correctly on the dashboard but appear blank in the PDF.
**Solution:** Add your external image domain(s) to the `connect-src` directive in your [Talisman configuration](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py#L1644-L1674):
```python
TALISMAN_CONFIG = {
"content_security_policy": {
"connect-src": [
"'self'",
"https://your-image-domain.com", # Add your external image domain here
],
"img-src": [
"'self'",
"data:",
"blob:",
"https://your-image-domain.com", # Also add here for dashboard viewing
],
}
}
```
Replace `https://your-image-domain.com` with the actual domain(s) where your images are hosted. If you have multiple domains or need to allow all external images (less secure), you can use `*` as a wildcard.
After updating your `superset_config.py`, restart Superset for the changes to take effect. Let me know if this resolves the blank image issue!
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=41ff8fb0-443b-45a3-b288-efb01b904273) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/38244#discussioncomment-15921053
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org