apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
61.5k stars 13.42k forks source link

Embedded images not working #28112

Open rea725 opened 4 months ago

rea725 commented 4 months ago

Bug description

Images referenced in the Text layout element are not wokring in version 3.1.2. The were working in version 2.x. We discovered this upon migration to 3.1.2.

How to reproduce the bug

Create a dashboard, and add a Text layout element. In the layout element, paste the following. A different image may also be used:

### [Warehouse Productivity](https://dashboards.foo.plaid.cloud/superset/dashboard/warehouse_productivity/ "Warehouse Productivity Reporting") <dl> <a href="https://dashboards.foo.plaid.cloud/superset/dashboard/warehouse_productivity/"> <img alt="Warehouse Productivity" src="https://github.com/rea725/superset-images/blob/main/warehouse-productivity-1.png?raw=true" width=100% height=100%> </dl>

This should render the following image:

Warehouse Productivity

Warehouse Productivity

Currently, it shows the broken image link instead: image

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
  • [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
  • [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
mistercrunch commented 4 months ago

Looks like this could be related to headers/cors settings, you can open these up through configs in your env: https://github.com/apache/superset/blob/master/superset/config.py#L1449-L1480