Skip to main content
Inspiring
February 25, 2020
Question

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

  • February 25, 2020
  • 1 reply
  • 5537 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?

TalhaaAuthor
Inspiring
February 25, 2020

- Content with both Bitmaps and Buttons may generate local security errors in some browsers if run from the local file system.

 

Bitmaps should change with button responses.

Legend
February 25, 2020

Well there you go. You have bitmaps in your buttons and they are in fact generating local security errors in your browser when run from the local file system.