title: Saving set-cookie value to browser cookies in React
body: <p>I get this cookie value from the server and I want to save this to my browser.</p>
  <pre><code>Set-Cookie: succeeedd=noooo!; Path=/
  </code></pre>
  <p>I've tried with</p>
  <pre><code>   const res = yield axios.post(`${config.authURL}/login`, data, {
        headers: {
          'Content-Type': 'application/json',
          Cookie: 'cookie1=value',
        },
      });
  </code></pre>
  <p>and</p>
  <pre><code>const res = yield axios.post(
    `${config.authURL}/login`,
    data,
    {
      headers: {
        'Content-Type': 'application/json',
      },
    },
    { withCredentials: true })
  </code></pre>
  <p>Both are not saving cookies into the browser cookies. How can I save Set-Cookie value to the browser so I can use them for authentication?</p>