Same firefox.svg file won't render from other CDN url
RavenHursT opened this issue · comments
Describe the bug
I uploaded the same firefox.svg
file that is used in the react-inlinesvg
demo on codesandbox.io
, put it up on an S3 cdn url, but when I try to use said url w/ react-inlinesvg
, the library refuses to render the markup for the <svg>
?
https://codesandbox.io/p/sandbox/inline-svg-not-working-cn5pyg?file=%2Fsrc%2FApp.tsx%3A32%2C40
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/inline-svg-not-working-cn5pyg?file=%2Fsrc%2FApp.tsx%3A32%2C40
Steps to reproduce
- take file
- put it on cdn
- try it
Expected behavior
Should just render the image, even from other cdn urls
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
No response
react-inlinesvg version
latest
TypeScript version
latest
Build tool
No response
Additional context
No response
Hey @RavenHursT
It's a CORS problem, not something with the library itself.
It's on the README