title: npm http-server with header X-Content-Type-Options
body: <p>Used
  <code>$ http-server --cors .</code>
  to serve the following that tried to access <a href="https://github.com/vuejs/vue/blob/dev/dist/vue.js" rel="nofollow noreferrer">https://github.com/vuejs/vue/blob/dev/dist/vue.js</a></p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
     DEMO
  &lt;/body&gt;
  
  &lt;script src=&quot;https://github.com/vuejs/vue/blob/dev/dist/vue.js&quot;&gt;&lt;/script&gt;
  
  &lt;/html&gt;
  </code></pre>
  <p>However it posted the following error:</p>
  <pre><code>The resource from “https://github.com/vuejs/vue/blob/dev/dist/vue.js” was blocked
  due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
  </code></pre>
  <p><a href="https://i.stack.imgur.com/UBXyz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UBXyz.png" alt="enter image description here" /></a></p>
  <p>How to fix it or make <code>npm</code> <code>http-server</code> have <code>header</code> <code>X-Content-Type-Options</code>?</p>