We need to set a cookie with the HttpOnly set to false. This works on our local environments, but the cookie has HttpOnly true when we move this code to our server. Is there something we might need to change in a configuration somewhere? This is on nopCommerce 4.0.
Cookie-setting code:
var options = new Microsoft.AspNetCore.Http.CookieOptions
{
HttpOnly = false,
Expires = cookieExpiresDate,
Domain = string.IsNullOrEmpty(_aemSettings.AemDomainName) ? ".oursite.com" : _aemSettings.AemDomainName,
SameSite = SameSiteMode.None,
Secure = true
};
_httpContextAccessor.HttpContext.Response.Cookies.Append(CART_QUANTITY_COOKIE_NAME, quantity.ToString(), options);