title: Empty body in fetch POST request
body: <p>I'm struggling with the fetch API in Javascript.
  When I try to POST something to my server with <code>fetch</code> method, the request body contains an empty array. But when I use Postman it works.
  Here is my server-side code in Node.js:</p>
  <pre><code>const express = require('express')
  const app = express()
  const port = 3000
  
  app.use(express.json())
  app.post('/api', function (req, res) {
      console.log(req.body)
  })
  app.listen(port)
  </code></pre>
  <p>Here is my client-side code:</p>
  <pre><code>fetch('http://&quot;theserverip&quot;:3000/api', {
      method: 'POST',
      headers: { &quot;Content-Type&quot;: &quot;application/json&quot; },
      mode: 'no-cors',
      body: JSON.stringify({
          name: 'dean',
          login: 'dean',
      })
  })
  .then((res) =&gt; {
      console.log(res)
  })
  </code></pre>
  <p>The problem is that the <code>req.body</code> is empty on server side.</p>