Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

CORS issue #2684

Open
swaroopbabaleshwar opened this issue Dec 5, 2023 · 4 comments
Open

CORS issue #2684

swaroopbabaleshwar opened this issue Dec 5, 2023 · 4 comments

Comments

@swaroopbabaleshwar
Copy link

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.

@lorand-lorincz-emnos
Copy link

+1, exactly the same issue but with google buckets

@akantic
Copy link

akantic commented Jan 15, 2024

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.

@lorand-lorincz-emnos
Copy link

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.

@tanem
Copy link
Owner

tanem commented Feb 13, 2024

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.

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

No branches or pull requests

4 participants