Skip to main content
Inspiring
February 25, 2020
Question

Error: The canvas has been tainted by cross-origin data.

  • February 25, 2020
  • 1 reply
  • 5543 views

When I publish my project I get this error when I open the HTML file.

Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.

 

 

This topic has been closed for replies.

1 reply

Legend
February 25, 2020

Did Animate try to warn you about this possibilty when you published the project? In the Output window?

steveng9199178
Participant
April 8, 2021

What if I want images in my button?

Thank you.

Legend
April 8, 2021

If the image doesn't change, then just put an image behind a transparent button.

 

If you must have the images inside the buttons, then accept that it will only work when your project is loaded from a web server.