From 75769304c15e7c22320ffa4f6246a1140b835c0b Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sat, 7 Feb 2026 00:21:56 -0800 Subject: [PATCH] Fix CORS bug when downloading in Chrome Chrome has a known issue where `Vary: Origin` is not respected by its in-memory cache w/r/t CORS. By requesting the original image with `crossorigin="anonymous"` set, we provide `Origin` during this request, which gets the appropriate CORS response set in the cache. --- app/javascript/wardrobe-2020/components/OutfitPreview.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/wardrobe-2020/components/OutfitPreview.js b/app/javascript/wardrobe-2020/components/OutfitPreview.js index f7a75c3f..d08585ba 100644 --- a/app/javascript/wardrobe-2020/components/OutfitPreview.js +++ b/app/javascript/wardrobe-2020/components/OutfitPreview.js @@ -291,6 +291,7 @@ export function OutfitLayers({ getBestImageUrlForLayer(layer, { hiResMode }), { preferArchive }, )} + crossorigin="anonymous" alt="" objectFit="contain" maxWidth="100%"