diff --git a/aperture.js b/aperture.js index 898a486..3fecbcb 100644 --- a/aperture.js +++ b/aperture.js @@ -15,6 +15,7 @@ class Aperture { img.onload = () => resolve(); img.onerror = () => resolve(); }); + img.crossOrigin = "Anonymous"; img.src = image; await promise; } @@ -56,6 +57,7 @@ class Aperture { img.onload = () => resolve(); img.onerror = () => resolve(); }); + img.crossOrigin = "Anonymous"; img.src = image; await promise; @@ -89,6 +91,7 @@ class Aperture { img.onload = () => resolve(); img.onerror = () => resolve(); }); + img.crossOrigin = "Anonymous"; img.src = image; await promise; }