kozakdenys / qr-code-styling

Automaticly generate your styled QR code in your web app.
https://qr-code-styling.com
MIT License
1.34k stars 437 forks source link

CORS issues only on cloudfront #120

Open chiptu opened 2 years ago

chiptu commented 2 years ago

Hey thanks for the library,

I am struggling with cors issues only with images coming from CloudFront, the problem doesn't occur on aws s3 or image load from server.

I verified my cloudfront settings and the access control allow origin seems right.

pb2 pb

Do you have any idea where i should dig into ?

akshay-nm commented 2 years ago

Experiencing the same issue trying to access image file from s3.

ApplyBoardDak commented 2 years ago

I also ran into this. I didn't find a proper fix for it, but I changed the image from an svg to a png and that works well enough for now 😕

FAMEparty commented 1 year ago

Getting Access to the CORS error for an Image. But, that image is being opened up when trying to load directly through the URL. Please have a look.

'https://d33qrt5d6zzez8.cloudfront.net/uploads/profile_image/165944772577_profile_image.png' from origin 'https://member.voxiproducts.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

image