-
Notifications
You must be signed in to change notification settings - Fork 32
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
Chrome Console Error And Mask Not Working #9
Comments
Yes, you can’t do that on a file:// url, it needs to be on a https:// one.
Sent from Mail for Windows 10
From: dada78
Sent: Monday, January 7, 2019 5:29 PM
To: codepo8/canvas-masking
Cc: Subscribed
Subject: [codepo8/canvas-masking] Chrome Console Error And Mask Not Working(#9)
I downloaded the example files but the masks aren't showing when viewing in the latest Chrome (Mac). I get a console error:"Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
at HTMLImageElement.mask.onload (file:///Users/cfuller1/Downloads/canvas-masking-master/canvasmask.js:28:33"
No problem in Firefox. Any idea what the issue is? Thanks~
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
As you can see, the demo works: https://codepo8.github.io/canvas-masking/
Sent from Mail for Windows 10
From: dada78
Sent: Monday, January 7, 2019 5:29 PM
To: codepo8/canvas-masking
Cc: Subscribed
Subject: [codepo8/canvas-masking] Chrome Console Error And Mask Not Working(#9)
I downloaded the example files but the masks aren't showing when viewing in the latest Chrome (Mac). I get a console error:"Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
at HTMLImageElement.mask.onload (file:///Users/cfuller1/Downloads/canvas-masking-master/canvasmask.js:28:33"
No problem in Firefox. Any idea what the issue is? Thanks~
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I see. I thought it would a cross domain issue and enabled CORS on Chrome but wasn't working, but yeah works on server. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I downloaded the example files but the masks aren't showing when viewing in the latest Chrome (Mac). I get a console error:"Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
at HTMLImageElement.mask.onload (file:///Users/cfuller1/Downloads/canvas-masking-master/canvasmask.js:28:33"
No problem in Firefox. Any idea what the issue is? Thanks~
The text was updated successfully, but these errors were encountered: