title: Setting cookie from WebApi via angularjs
body: <p>I'm making a call to the WebApi service, which sets the cookie in the response object.
  The call is made from angularjs via $resource
  So this is the server code:</p>
  
  <pre><code>CookieHeaderValue cookie = new CookieHeaderValue("Token", "blah") { HttpOnly = true, Expires = DateTime.Now.AddYears(10), Path="/"  };
  response.Headers.AddCookies(new CookieHeaderValue[] { cookie });
  </code></pre>
  
  <p>This works, I can see the Set-Cookie header in a response, however the cookie is not being set.</p>
  
  <p>A friend of mine had to set  xhrFields' withCredentials to true when he was using jQuery, so I wonder if there's something that needs to be configured in angular as well ?</p>