I have a simple geometry for a box, that I\'m trying to decorate with a texture. However, my box doesn\'t show at all (or perhaps it is 100% black). This current question is evo
Error console tells it is another CORS-Problem:
DOMException [SecurityError: "The operation is insecure."
Set the CrossOrigin attribute to empty:
var loader = new THREE.TextureLoader();
loader.crossOrigin = "";
loader.load("http://mrdoob.github.io/three.js/examples/textures/crate.gif",
function( texture ) {
//...
},
function () {}, // onProgress function
function ( error ) { console.log( error ) } // onError function
);