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

The operation is insecure #189

Open
panay opened this issue Dec 19, 2018 · 2 comments
Open

The operation is insecure #189

panay opened this issue Dec 19, 2018 · 2 comments

Comments

@panay
Copy link

panay commented Dec 19, 2018

Hi, I try to convert to pdf a google map and I have this problem with Safari 11, when the plugin call the toDataURL method.

const options = {
          imageTimeout: 30000,
          html2canvas: {
            scale: 2,
            useCORS: true
          }
};
 this.$pdf().set(options).from(element).save();
@eKoopmans
Copy link
Owner

eKoopmans commented Jan 26, 2019

Hi @panay, hard to say, but it could be an issue with cross-origin images. You could try the html2canvas proxy option - see the docs here.

Edit: If you used allowTaint on html2canvas, that would cause the "insecure" error you mentioned. Once the canvas is tainted, there's no way to read from it. Loading remote images is always going to be difficult at best.

@aaqibshehzad
Copy link

Hi
I'm having the same issue. I haven't used allowTaint and there is no cross-origin content. Upon searching i found it may be related to local storage access in safari. Is this something you can add support for or fix.

i18next/i18next-browser-languageDetector#132
https://forums.developer.apple.com/thread/87778

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