I'm trying to read cookies from the controller in the api rest saved from a SPA Middleware
I have 2 SPA projects (www.spa1.com, www.spa2.com) and one for the rest (api.spa1.com, api.spa2.com). I'm trying to read cookies from the controller in the api rest saved from a SPA Middleware
SPA Middleware:
private void AddCookie(HttpContext context, string key, string value)
{
context.Response.Cookies.Append(key, value,
new CookieOptions
{
Path = "/",
Domain = context.Request.Host.Host,
HttpOnly = true,
Secure = true,
Expires = DateTimeOffset.Now.AddMonths(3),
SameSite = SameSiteMode.None
});
}