My Chrome version is 31.0.1650.57
Currently, I am in the process of learning THREE.js and decided to try out a planet sample that I downloaded from https://github.com/jeromeetienne/threex.planets/
Unexpectedly, when I try to run the earth.html file,
I encounter a peculiar error, as indicated by the title:
THREE.WebGLRenderer 59 three.min.js:424
Cross-origin image load denied by Cross-Origin Resource Sharing policy. earth.html:1
Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': the canvas has been tainted by cross-origin data. threex.planets.js:73
(anonymous function) threex.planets.js:73
Upon inspecting the code, I came across a section that seems to be linked to this error:
THREEx.Planets.baseURL = '../'
...
map: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/earthmap1k.jpg'),
However, being relatively new to JavaScript, I am unsure of how to address this issue,
Any guidance or assistance would be greatly appreciated!
Thank you very much!