Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Commit 3a4cae7

Browse files
committed
Use Strict SameSite mode for temp data cookies
1 parent df75fd2 commit 3a4cae7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewFeatures/CookieTempDataProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public void SaveTempData(HttpContext context, IDictionary<string, object> values
6565
{
6666
Domain = string.IsNullOrEmpty(_options.Domain) ? null : _options.Domain,
6767
HttpOnly = true,
68+
SameSite = SameSiteMode.Strict,
6869
Secure = context.Request.IsHttps,
6970
};
7071
SetCookiePath(context, cookieOptions);

0 commit comments

Comments
 (0)