title: Angular: Cookie is not created
body: <p>I'm doing a <code>/login</code> <strong>POST</strong> request with the flag <strong><code>withCredentials = true</code></strong>. And the response is the expected and if I inspect with <code>Chrome Dev Tools -&gt; Network</code> I can see a response header named <code>Set-Cookie</code> with this content:</p>
  
  <pre><code>Set-Cookie:JSESSIONID=1944a870623c3499ea938df17a5g; Path=/; Secure; HttpOnly
  </code></pre>
  
  <h3>But...</h3>
  
  <p>The <strong>cookie is not created</strong> in the browser   <em>(if I refresh the page neither)</em>. BTW: in Postman the cookie is created...</p>
  
  <p>I'm doing the requests via <strong>Angular <code>v.2.4.2</code></strong></p>
  
  <p>In theory the cookie will be created automatically, isn't it? BTW I can't access neither to the <code>Set-Cookie</code> response header:</p>
  
  <pre><code>const options = new RequestOptions({ headers, withCredentials: true });
  const body = `username=${username}&amp;password=${password}`;
  
  return this.http.post(`${host}${basePath}/login`, body, options)
    .do(r =&gt; {
      console.log(r.headers.get('Set-Cookie')); // Nothing… :( Only I can access to Content-Type header
    })
    .map(r =&gt; r.json())
  </code></pre>
  
  <p>I imagine that this is normal if in theory the cookie will be created automatically, but is not created.... </p>
  
  <p>Why the cookie is not created? How can I solve it?</p>
  
  <p>Thank you so much!  </p>