From 09067ee56ccfc4a82ec35822b850093abaae7587 Mon Sep 17 00:00:00 2001 From: Stephan Cilliers <5469870+stephancill@users.noreply.github.com> Date: Tue, 19 Dec 2023 11:36:29 +0200 Subject: [PATCH] fix(react-ui-shadcn): fix cors issues loading images --- .changeset/dull-wolves-rule.md | 5 +++++ packages/react-ui-shadcn/src/renderers/image.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/dull-wolves-rule.md diff --git a/.changeset/dull-wolves-rule.md b/.changeset/dull-wolves-rule.md new file mode 100644 index 00000000..823c50ac --- /dev/null +++ b/.changeset/dull-wolves-rule.md @@ -0,0 +1,5 @@ +--- +"@mod-protocol/react-ui-shadcn": patch +--- + +fix: `crossOrigin="anonymous"` for Mod `ImageRenderer` diff --git a/packages/react-ui-shadcn/src/renderers/image.tsx b/packages/react-ui-shadcn/src/renderers/image.tsx index a113ced0..95f2acd3 100644 --- a/packages/react-ui-shadcn/src/renderers/image.tsx +++ b/packages/react-ui-shadcn/src/renderers/image.tsx @@ -9,6 +9,7 @@ export const ImageRenderer = (