I am trying to send the user a cookie after I authenticate him. everything works perfect, the response is being constructed in my code, but even after the client got the response, There is no cookie saved in the browser (checking it via chrome F12 -> Resources).
Note: I can see the response being sent in fiddler with my cookie:

I wonder what is going wrong and why the browser doesn't save the cookie.
Here is the WebAPI function that handles the Post request:
public HttpResponseMessage Post([FromBody]User user) { IDal dal = new ProGamersDal(); var currentUser = dal.GetUser(user.Username, user.Password); if (currentUser == null) { return Request.CreateErrorResponse(HttpStatusCode.BadRequest, "Bad request."); } else { var res = new HttpResponseMessage(); var cookie = new CookieHeaderValue("user",JsonConvert.SerializeObject(new ReponseUser(){username = currentUser.Username, role = currentUser.Role})); cookie.Expires = DateTimeOffset.Now.AddDays(1); cookie.Domain = Request.RequestUri.Host; cookie.Path = "/"; res.Headers.AddCookies(new CookieHeaderValue[] { cookie }); return res; } }