title: Empty req.query on ExpressJS
body: <p>When I send data from Angular to NodeJS using http.post, it always returns me empty req.query.
  My server.js:</p>
  
  <pre><code>const express = require('express');
  const cors = require('cors');
  const bodyParser = require('body-parser');
  
  const app = express();
  
  app.use(bodyParser.urlencoded({ extended: true }));
  app.use(bodyParser.json());
  app.use(cors());
  
  app.post('/', (req, res) =&gt; {
      console.log(req.query);
      res.send(req.query);
  });
  
  app.listen(4000, () =&gt; {
      console.log('Successfully');
  });
  </code></pre>
  
  <p>Frontend:</p>
  
  <pre><code>onSubmit(f: NgForm) {
      let data = f.value;
      let httpOptions = {
          headers: new HttpHeaders().set('Content-Type', 'application/json')
      };
      data = JSON.stringify(data);
      this.http.post('http://localhost:4000/', data, httpOptions).subscribe(data =&gt; {
          console.log(data);
      }, error =&gt; {
          console.log(error);
      });
  }
  </code></pre>
  
  <p>And it always returns {} in console. I tried to run POST-requests in POSTMAN and it correctly worked there.
  Here is the body of http-request in browser:
  <a href="https://i.stack.imgur.com/DDstZ.png" rel="nofollow noreferrer">http-request in browser</a></p>
  
  <p>Hope for your help, thanks.</p>