title: No body in POST request
body: <p>I'm working on a web-push notifications project. I want to send user subscriptions from my client to a node server.</p>
  
  <p><strong>Client side code</strong></p>
  
  <pre><code>function sendSubscriptionToBackEnd(subscription) {
    return fetch('/api/save-subscription/', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      body: JSON.stringify(subscription)
    });
  }
  </code></pre>
  
  <p><strong>Server side code</strong></p>
  
  <pre><code>app.post('/api/save-subscription/', function (req, res) {
    console.log(req.body);
  }
  </code></pre>
  
  <p>The subscription object is a standard subscription with "endpoint" and "keys". I have already tried printing the subscription on the client side before sending it and it appears to be valid.</p>
  
  <p>The problem is that the "req" object on the server side doesn't contain any "body" key. So, I don't know how to grab the subscription on the server side.</p>