From 7a5a6b919bb0c4c82da81820cca99feed52bf4dd Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 8 Jan 2021 17:38:27 -0800 Subject: [PATCH] Fix Download button Huh, I'm not sure why SVGs ever didn't have `crossOrigin: "anonymous"`? The old commit isn't really super helpful for understanding that. Maybe I just didn't notice the problem in that case? Well, whatever. Let's see if this breaks something else! (I'm also wondering if we should just like, _always_ ask for things with crossOrigin set?) --- src/app/components/OutfitPreview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/OutfitPreview.js b/src/app/components/OutfitPreview.js index c0ae180..bab512f 100644 --- a/src/app/components/OutfitPreview.js +++ b/src/app/components/OutfitPreview.js @@ -299,7 +299,7 @@ export function FullScreenCenter({ children, ...otherProps }) { export function getBestImageUrlForLayer(layer) { if (layer.svgUrl) { - return { src: safeImageUrl(layer.svgUrl) }; + return { src: safeImageUrl(layer.svgUrl), crossOrigin: "anonymous" }; } else { return { src: layer.imageUrl, crossOrigin: "anonymous" }; }