Skip to content

fix(react-ui-shadcn): fix cors issues loading images #131

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stephancill
Copy link
Contributor

@stephancill stephancill commented Dec 19, 2023

Change Summary

Add crossOrigin="anonymous" attribute to ImageRenderer <img> elements.

Partially addresses #116 (no graceful fallback for broken images yet)

Merge Checklist

  • PR has a changeset
  • PR includes documentation if necessary
  • PR updates the rich-embed examples if necessary
  • includes a parallel PR for Mod-starter and the gateway if necessary

Copy link

changeset-bot bot commented Dec 19, 2023

🦋 Changeset detected

Latest commit: 09067ee

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@mod-protocol/react-ui-shadcn Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Dec 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api ✅ Ready (Inspect) Visit Preview Dec 19, 2023 9:40am
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2023 9:40am
example-nextjs-shadcn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2023 9:40am

@stephancill
Copy link
Contributor Author

Might actually be better to implement #132 and offload the choice of how to handle CORS to the client

@davidfurlong
Copy link
Contributor

fine with either or both.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants