From 339779fce16bee92d060a80c9a33d8caa20fd684 Mon Sep 17 00:00:00 2001 From: Wanjohi Date: Wed, 27 Nov 2024 11:46:40 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Remove=20cross-origin=20i?= =?UTF-8?q?solation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 5 ++++- packages/ui/src/image/image-loader.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 97223e6b..c9a7c427 100644 --- a/.gitignore +++ b/.gitignore @@ -44,4 +44,7 @@ yarn-error.log* bun.lockb #tests -id_* \ No newline at end of file +id_* + +# Rust +target \ No newline at end of file diff --git a/packages/ui/src/image/image-loader.tsx b/packages/ui/src/image/image-loader.tsx index 472c011b..1fad1a4e 100644 --- a/packages/ui/src/image/image-loader.tsx +++ b/packages/ui/src/image/image-loader.tsx @@ -46,7 +46,7 @@ export const ImageLoader = component$((props: ImageLoaderProps) => { const ctx = canvas.getContext('2d', { willReadFrequently: true }); if (!ctx) return; - img.crossOrigin = "anonymous" + // img.crossOrigin = "anonymous" canvas.width = img.width; canvas.height = img.height; ctx.drawImage(img, 0, 0, canvas.width, canvas.height);