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.
This commit is contained in:
Emi Matchu 2026-02-07 00:21:56 -08:00
parent 0691153101
commit 75769304c1

View file

@ -291,6 +291,7 @@ export function OutfitLayers({
getBestImageUrlForLayer(layer, { hiResMode }), getBestImageUrlForLayer(layer, { hiResMode }),
{ preferArchive }, { preferArchive },
)} )}
crossorigin="anonymous"
alt="" alt=""
objectFit="contain" objectFit="contain"
maxWidth="100%" maxWidth="100%"