Axios won't send cookie, Ajax (xhrFields) does just fine
<p>Using Axios</p>

<pre><code>export function sendAll() {
  return (dispatch) =&gt; {
    dispatch(requestData());
    return axios({
      method: 'POST',
      url: `${C.API_SERVER.BASEURL}/notification/sendAll`,
      data: {prop: 'val'},
      // responseType: 'json',
      headers: {
        'Content-Type': 'application/json'
      },
      withCredentials: true
    }).then((response) =&gt; {
      dispatch(receiveData(response));
    }).catch((response) =&gt; {
      dispatch(receiveError(response));
      // dispatch(pushState(null, '/error'));
    })
  }
};
</code></pre>

<p>Result using Axios</p>

<p><a href="https://i.stack.imgur.com/PgPjA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PgPjA.png" alt="Chrome network tab when using Axios"></a></p>

<p>Using $.ajax</p>

<pre><code>$.ajax({
  url: " http://local.example.com:3001/api/notification/sendAll",
  method: "post",
  data: {},
  crossDomain: true,
  xhrFields: {
    withCredentials: true
  }
})
</code></pre>

<p>Result using $.ajax</p>

<p><a href="https://i.imgur.com/C6QXbRf.png" rel="noreferrer"><img src="https://i.imgur.com/C6QXbRf.png" alt="Chrome network tab when using $.ajax"></a></p>

<p>I am unable to force Axios to send a POST when trying to attach data to POST (cookie doesnt get sent either way).
My server setup (express):</p>

<pre><code>app.use(function (req, res, next) {
  res.header("Access-Control-Allow-Origin", `${C.PROTOCOL}://${C.DOMAIN}:${C.PORT}`);
  res.header("Access-Control-Request-Headers", "*");
  res.header('Access-Control-Allow-Methods', 'GET, POST, DELETE, OPTIONS');
  res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization");
  res.header("Access-Control-Allow-Credentials", "true");
  next();
});
</code></pre>

<p>I do not have a OPTIONS route defined. I want Axios to send POST with cookie.</p>

<pre><code>router.post('/notification/sendAll', function (req, res, next) {
  res.sendStatus(204);
  // ...
});
</code></pre>