ClntK / Tetris-CK

My own version of Tetris. Ongoing.
MIT License
0 stars 0 forks source link

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

Open daniel-r-hartman opened 2 years ago

daniel-r-hartman commented 2 years ago

When I load or refresh the page a tetromino flashes in at the top of the screen and disappears.

Looks like there is a CORS issue with loading the images to the canvas. I tried allowing cross origin requests with this plugin, but its still failing. Might just an issue when running the program locally and might not happen in the files are all being requested over http: instead of from file:

Not sure how to fix this at the moment. Fun project though dude!

daniel-r-hartman commented 2 years ago

Capture