title: NodeJS, MIME type ('text/html') is not a supported stylesheet MIME type
body: <p>Everytime I connect to my local server on Google Chrome, I get this error :</p>
  
  <p><code>Refused to apply style from 'http://localhost:2000/app.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.</code></p>
  
  <p>I can access my css file by typing its path so the problem doesn't come from there.
  I also searched for informations about this topic but nothing worked.</p>
  
  <p>Here's my code</p>
  
  <p>Server Side</p>
  
  <pre><code>const Game = require("./class/game");
  const express = require("express");
  const app = express();
  const serv = require("http").Server(app);
  
  // Server
  app.get("/", function(req, res) {
      res.sendFile(__dirname + "/client/index.html");
  });
  app.use("/client", express.static(__dirname + "/client"));
  
  serv.listen(2000);
  console.log("Server started on port 2000");
  
  
  var io = require("socket.io")(serv, {});
  io.sockets.on("connection", function(socket) {
      console.log("Connection done");
  });
  </code></pre>
  
  <p>Client side</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&gt;
      &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.0/socket.io.js"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" type="text/css" href="./app.css"&gt;
      &lt;title&gt;Games&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;script&gt;
      var socket = io();
  &lt;/script&gt;
  
  &lt;body&gt;
      test
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
  
  body {
      background-color: aquamarine;
  }
  </code></pre>