I would like to clarify how cookies work between angular app and the c# server controller. This is what I gathered from various discussions and forums:
The angular client sends HTTP Request (e.g. to login) to the c# server
c# server creates the cookie (e.g.
refreshToken) using:Response.Cookies.Append("refreshToken", token, cookieOptions);c# server returns and the cookie
refreshTokenis set in store on the client sideWhenever the angular client sends the HTTP request again, the cookie is set in the
Requestobject (probably by the browser, behind the scenes - angular client does not explicitly set the cookie)c# server receives the request and retrieves the cookie like below:
var refreshToken = Request.Cookies["refreshToken"];
Is my understanding correct?