title: Error while trying to load tensorflowJS model from local, Fetch API cannot load downloads://model. URL scheme must be"https" for CORS request error
body: <p>I am trying to load a tensorflow js model that is saved in downloads directory as mentioned in the tutorials of tensorflowjs. But I am facing cors error please find the image below.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
  
  
  &lt;script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.0/dist/tf.min.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  
  async function app() {
  
  const t = await tf.loadLayersModel('downloads://model');
  console.log("done");
  console.log(t);
  }
  
  app();
  
  
  &lt;/script&gt;
  &lt;script&gt;
  
  &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/gPyTo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gPyTo.png" alt="enter image description here"></a></p>
  
  <p>Any pointers on how to resolve this.</p>
  
  <p>Tried disabling cors for chrome but still didnt work.</p>