title: Three js texture loading. Access to image from origin 'null' has been blocked by CORS policy
body: <p>I'm trying to load a texture but i keep getting this error no matter what i do:</p>
  
  <pre><code>Access to Image at '&lt;file-path&gt;/IMG/1.jpg' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
  </code></pre>
  
  <p>Here's the code i'm using to load the image:</p>
  
  <pre><code>var loader = new THREE.TextureLoader();
  loader.crossOrigin = "";
  var url = "IMG/1.jpg";
  var materials = [
      new THREE.MeshLambertMaterial({
          map: loader.load(url)
      }),
      new THREE.MeshLambertMaterial({
          map: loader.load(url)
      }),
      new THREE.MeshLambertMaterial({
          map: loader.load(url)
      }),
      new THREE.MeshLambertMaterial({
          map: loader.load(url)
      }),
      new THREE.MeshLambertMaterial({
          map: loader.load(url)
      }),
      new THREE.MeshLambertMaterial({
          map: loader.load(url)
      }),
  ];
  </code></pre>