title: axios not retrieving cookie
body: <p>Hey I am having an issue where when I am running the server and app locally there is no issue but when each is pushed to their respective servers the app does not return the cookie. Does anyone know how to get around this?</p>
  
  <p>server:</p>
  
  <pre><code>app.use(function(req, res, next) {
    res.header('Access-Control-Allow-Origin', '*');
    res.header('Access-Control-Allow-Credentials', true);
    res.header(
      'Access-Control-Allow-Headers',
      'Origin, X-Requested-With, Content-Type, Accept'
    );
    next();
  });
  </code></pre>
  
  <p>react:</p>
  
  <pre><code>const request = axios.post(`${url}/api/login`, {
        email,
        password,
        withCredentials: true,
        headers: { crossDomain: true, 'Content-Type': 'application/json' },
      })
      .then(response =&gt; response.data);
  </code></pre>