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

Getting CORS error #85

Open
yusuf-murodov-gamerpay opened this issue Nov 23, 2023 · 3 comments
Open

Getting CORS error #85

yusuf-murodov-gamerpay opened this issue Nov 23, 2023 · 3 comments

Comments

@yusuf-murodov-gamerpay
Copy link

When converting react component containing img tag with external source url, there conversion gets failed with CORS error because fetching image data gets failed. I have no control to the server to allow/enable CORS.

Reproducing steps:

  1. Create a component which contains img tag with external source
  2. Convert component to any image type
image
@hugocxl
Copy link
Owner

hugocxl commented Nov 24, 2023

Hi @yusuf-murodov-gamerpay
Could you provide a reproducible example so I can take a look at it?

Thanks

@Ianec21
Copy link

Ianec21 commented Jan 31, 2024

I'm having the same problem here.

Access to fetch at 'https://firebasestorage.googleapis.com/v0/b/testmd-21f8a.appspot.com/o/images%2Fimagini-itemi%2F1706724787841Screenshot%202024-01-31%20at%2020.11.56.png?alt=media&token=b9b99217-3d80-4a85-9bf4-7e1221c9ab8f' from origin 'https://testmd-21f8a.web.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

@hugocxl
Copy link
Owner

hugocxl commented Feb 8, 2024

@Ianec21 @yusuf-murodov-gamerpay it seems not to be related to this React implementation but an issue from "html-to-image". Could you give it a look?

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

3 participants