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

checkCrossOrigin={false} causes: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. #552

Closed
developdeez opened this issue Mar 12, 2021 · 8 comments

Comments

@developdeez
Copy link

developdeez commented Mar 12, 2021

I recently tried this component again and notcied that when using any image (Im using the test url)

Im not sure why I keep getting this message. Im attempting to create a window around the cropper so the user can save what they have in frame.

Here's an example: https://codesandbox.io/s/react-cropper-demo-forked-5jehf

I need the flag for my signedURLs (CORs), so removing it isnt an option.

@developdeez developdeez changed the title Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. checkCrossOrigin={false} causes: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. Mar 12, 2021
@developdeez
Copy link
Author

bump

@MatheusFoganholo
Copy link

Same problem here.

@shekhar-shubhendu
Copy link
Collaborator

seems like another cropperjs issue
please check there
fengyuanchen/cropperjs#675

@developdeez
Copy link
Author

@shekhar-shubhendu it does look related not sure how to solve it in React using their js fix

@developdeez
Copy link
Author

Are there any good alternatives for react-cropper?
Seems this bug isnt going to be fixed?

@shekhar-shubhendu
Copy link
Collaborator

shekhar-shubhendu commented Apr 29, 2021

fengyuanchen/cropperjs#824
adding here for reference.

@stale
Copy link

stale bot commented May 30, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 30, 2021
@stale
Copy link

stale bot commented Jun 6, 2021

Closing as there was no activity. Please reopen if required.

@stale stale bot closed this as completed Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants