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:
parent
0691153101
commit
75769304c1
1 changed files with 1 additions and 0 deletions
|
|
@ -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%"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue