I am currently coding frogger and I am working with Chrome. I keep getting an error of:
Access to Image at 'file:///C:/Users/owner/Desktop/Frog.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access
I tried running the code in Firefox and it worked with no errors. I am using getImageData
as well as image tags, which I think maybe the problem due to cross-origin data. Any fixes?