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

Securityerror (dom exception 18) the operation is insecure - Safari #1758

Closed
jgrDev opened this issue Feb 12, 2019 · 1 comment
Closed

Securityerror (dom exception 18) the operation is insecure - Safari #1758

jgrDev opened this issue Feb 12, 2019 · 1 comment

Comments

@jgrDev
Copy link

jgrDev commented Feb 12, 2019

Hi,

the elements type select cause the following error in safari:

Securityerror (dom exception 18) the operation is insecure.

The error is produced when canvas.toDataURL is called, because the object canvas is corrupted.

Thanks!

@jenilChristo
Copy link

jenilChristo commented Feb 20, 2019

Was facing the same issue in safari and iOS devices. Setting the useCORS:false and using the non-minified script , solved the issue for me

html2canvas(document.body,{useCORS:false}).then(function(canvas){ window.screenshot = canvas.toDataURL('image/png'); });

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

2 participants