I've created a game and built it, but when I try to open index.html all I get is the following error message in the conosle:
in firefox
SecurityError: The operation is insecure. index.js:1
and on chrome
index.js:1 Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
how do I make it such that this goes away? and how can I ensure that anyone that tries to play the game won't get this? I believe it has something to do with CORS but I'm not sure