react-svg icon indicating copy to clipboard operation
react-svg copied to clipboard

CORS issue

Open swaroopbabaleshwar opened this issue 2 years ago • 4 comments

I am using react-svg library in my react web application.

I am using CDN urls for svg images with react-svg , but I am getting CORS issue.

When I use the same CDN url with img tag then I am not getting any CORS issue.

We tried to set headers in the CDN server and s3 bucket where our images are stored but still we are facing CORS issue.

swaroopbabaleshwar avatar Dec 05 '23 02:12 swaroopbabaleshwar

+1, exactly the same issue but with google buckets

lorand-lorincz-emnos avatar Dec 07 '23 19:12 lorand-lorincz-emnos

Same issue, I still did not have time to find a pattern when it happens because it works for a big majority of the time, but it happens occasionally and breaks our app. To make it worse, browser then caches it and the only way to fix it is clearing the cache.

akantic avatar Jan 15 '24 21:01 akantic

I can confirm that it was a problem with our google bucket. We fixed it a month ago so I cannot exactly remember what the dev ops guys did, but the problem was a setting on the bucket.

lorand-lorincz-emnos avatar Jan 16 '24 08:01 lorand-lorincz-emnos

Hey folks. As @lorand-lorincz-emnos said, it's likely an issue with your server/CDN config. There are previous issues here you can look through if you'd like more info.

tanem avatar Feb 13 '24 16:02 tanem

Assuming this is resolved, so closing.

tanem avatar Jan 26 '25 18:01 tanem