I have an ApiController
in which I set a tokenId
as cookie using this code:
var cookie = new HttpCookie("TokenId", tokenId)
{
Expires = DateTime.Now.AddDays(1),
Domain = this.Request.RequestUri.Host,
Path = "/"
};
HttpContext.Current.Response.SetCookie(cookie);
Using Firefox
it's working and firebug shows the received cookie. But Chrome
doesn't show the cookie in the debugger. And on the further HttpRequest
s it doesn't send the cookie