Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Any reason a web-hosted image won't show?

I’m trying to include a logo (png) in my plots, but it won’t work if I use a link as the “source”. In this code pen I use the link to my image hosted on AWS for when the plot loads, which get replaced by a couple links to images that I’ve grabbed from the plotly website when the window is resized. Any ideas?

One reason might be that your web server might block cross origin requests
(CORS) which prevent other websites from loading resources directly from
your webserver.

1 Like

I got that error on safari when the image was included in the .js file. Why would this be happening even on code pen when linking to a file on AWS?