title: firebase cloud function post request body
body: <p>I am making an http request from an angular form like that:</p>
  
  <pre><code>  this.http.post(this.endPoint, formData, { responseType: 'text' }).subscribe(
      res =&gt; {
        console.log(res);
      }
    )
  </code></pre>
  
  <p>And I have a simple cloud function:</p>
  
  <pre><code>const functions = require('firebase-functions');
  const cors = require('cors')({ origin: true });
  
  exports.test = functions.https.onRequest((req, res) =&gt; {
  
      cors(req, res, () =&gt; {
          const data = req.body;
          res.send(`Hello from Firebase! ${data}`);
      });
  
  })
  </code></pre>
  
  <p>However the req.body does not work and i get this response :</p>
  
  <blockquote>
    <p>Hello from Firebase! [object Object]</p>
  </blockquote>
  
  <p>Is there any idea why this happens?</p>