title: Setting Cookie from react not find in HttpContext.Current.Request.Cookies in server side
body: <p>I try to use in saga.js function:</p>
  
  <pre><code>import Cookies from 'universal-cookie';
  
  export function* certLoginFlow() {
    while (true) {
  ...
  var expiresDate = new Date();
  expiresDate.setTime(expiresDate.getTime() + 24 * 60 * 60 * 1000 * 90); //90 day
   yield call(certificateLogin, { data });
  ...
  }
  }
  </code></pre>
  
  <p>// Set the cookie:</p>
  
  <pre><code>const cookies = new Cookies();
  cookies.set('CryptoProVersion', version, { path: '/', expires: expiresDate });
  </code></pre>
  
  <p>// Try to get in web-api controller:</p>
  
  <pre><code>  public static string ExtractCryptoInfo(HttpRequestBase request)
          {
              var Cookies = request.Cookies;
  
              if (Cookies != null &amp;&amp; Cookies["CryptoProVersion"] != null)
              {
                  return Cookies["CryptoProVersion"].Value;
              }
              return null;
          }
  </code></pre>
  
  <p>ExtractCryptoInfo always return null..Why? What I'm doing wrong?</p>
  
  <p>Ok, I think It's must be like this, but still not working:</p>
  
  <pre><code>export function postRequest(url, data, cookies) {
    return fetch(url,
      {
        method: 'POST',
        credentials: 'same-origin',
        headers: {
          'Content-Type': 'application/json',
          'Set-Cookie': cookies
        },
        body: JSON.stringify(data)
      })
      .then(checkStatus)
      .then(parseJSON);
  }
  </code></pre>
  
  <p>I also use CORS..</p>