title: Why Cookies are not set in the browser but works in Postman?
body: <p>Backend is Spring boots. I setup cookie there and it is working fine with postman.</p>
  <pre><code>@CrossOrigin(origins = &quot;http://localhost:3000&quot;, allowCredentials = &quot;true&quot;)
  
  //Spring boots  (http://localhost:8080)
           Cookie cookie = new Cookie(&quot;access-token&quot;,token);
           cookie.setPath(&quot;/&quot;);
           cookie.setSecure(false);      
           response.addCookie(cookie);
            
           response.addHeader(&quot;Access-Control-Allow-Credentials&quot;, &quot;true&quot;);
  </code></pre>
  <p>Front End is ReactJS, I've used a POST method using Axios to get Login information.
  I am getting response, but cookies are not set.</p>
  <pre><code>//React JS (http://localhost:3000)
             axios({
                  url: common.url + '/login',
                  data: &quot;userId=&quot; + userid+ &quot;&amp;password=&quot; + password,
                  method: 'post',
                  cache: false,
                  contentType: 'application/x-www-form-urlencoded',
                  headers: {
                      'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'Cache-Control': 'no-cache','withCredentials':'true'
                  }
              }).then(function (result) {
                  ;
                 //Success Login
                 
              })
  
  </code></pre>
  <p>Tried many things. No Luck</p>