title: Why can't I access browser cookies when sent through POST request to express js
body: <p>I am sending this axios &quot;POST&quot; request from reactjs.</p>
  <pre><code> Axios.post(`http://localhost:3003/test`, { withCredentials: true })
      .then((response) =&gt; {
        console.log(response.data);
      })
      .catch((error) =&gt; {
        console.log(error);
      });
  </code></pre>
  <p>and I get null when i try to access req.headers.cookie or req.cookies from express</p>
  <pre><code>app.post(&quot;/test&quot;,(req,res)=&gt;{
    console.log(req.headers.cookie);
    console.log(req.cookies);
    res.send(req.headers.cookie);
  })
  </code></pre>
  <p>but when i change the above request to get, the cookie is accessible. But I need to send through POST only.</p>