Use Strict SameSite mode for temp data cookies
This commit is contained in:
parent
df75fd2188
commit
3a4cae72bd
|
|
@ -65,6 +65,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures
|
|||
{
|
||||
Domain = string.IsNullOrEmpty(_options.Domain) ? null : _options.Domain,
|
||||
HttpOnly = true,
|
||||
SameSite = SameSiteMode.Strict,
|
||||
Secure = context.Request.IsHttps,
|
||||
};
|
||||
SetCookiePath(context, cookieOptions);
|
||||
|
|
|
|||
Loading…
Reference in New Issue