title: Mime type issues with build folder - React Express App
body: <p>I had a website deployed and working well until yesterday. It is a react app using express and NodeJS.</p>
  <p>My website is still working well in developpement using yarn start, but in production i am getting theses errors :</p>
  <pre><code>GEThttps://www.mysite.fr/static/js/main.fd67b0bb.js
  GEThttps://www.mysite.fr/static/css/main.43a07738.css
  La ressource à l’adresse « https://www.mysite.fr/static/css/main.43a07738.css » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff). //MIME TYPE issues
  La ressource à l’adresse « https://www.mysite.fr/static/js/main.fd67b0bb.js » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff).
  </code></pre>
  <p>Does someone ever encountered this issue ? I had Google too much hours without finding anything working...</p>
  <p>Here is my app.js code :</p>
  <pre><code>const express = require(&quot;express&quot;);
  const path = require(&quot;path&quot;);
  const app = express();
  const fs = require(&quot;fs&quot;);
  var cors = require(&quot;cors&quot;);
  
  app.use(cors());
  
  //I skipped the res.setHeader part...
  
  app.use(express.static(path.join(__dirname, &quot;build&quot;)));
  
  app.get(&quot;/&quot;, function (req, res) {
    res.sendFile(path.join(__dirname, &quot;build&quot;, &quot;index.html&quot;));
  });
  
  app.listen(9000);
  </code></pre>
  <p>Any idea on what is happening here ?</p>