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,
|
Domain = string.IsNullOrEmpty(_options.Domain) ? null : _options.Domain,
|
||||||
HttpOnly = true,
|
HttpOnly = true,
|
||||||
|
SameSite = SameSiteMode.Strict,
|
||||||
Secure = context.Request.IsHttps,
|
Secure = context.Request.IsHttps,
|
||||||
};
|
};
|
||||||
SetCookiePath(context, cookieOptions);
|
SetCookiePath(context, cookieOptions);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue