react-modal-image icon indicating copy to clipboard operation
react-modal-image copied to clipboard

CORS failure when downloading image from S3

Open allgood opened this issue 2 months ago • 0 comments

Tested with backblaze, if I show an image from a public bucket it is correctly shown because it is used on an <img> tag, but when trying to download, the fetch() instruction fails because the previously cached response from the server doesn't have the CORS headers.

The solution seens to be adding a cache busting element on the image forcing the browser to ignore cache.

allgood avatar Oct 28 '25 11:10 allgood