Родитель
371af136d3
Коммит
72bc9c0f2c
|
@ -73,7 +73,7 @@ namespace Microsoft.AspNetCore.Antiforgery.Internal
|
||||||
options.HttpOnly = true;
|
options.HttpOnly = true;
|
||||||
options.Path = httpContext.Request.PathBase;
|
options.Path = httpContext.Request.PathBase;
|
||||||
// Note: don't use "newCookie.Secure = _options.RequireSSL;" since the default
|
// Note: don't use "newCookie.Secure = _options.RequireSSL;" since the default
|
||||||
// value of newCookie.Secure is poulated out of band.
|
// value of newCookie.Secure is populated out of band.
|
||||||
if (_options.RequireSsl)
|
if (_options.RequireSsl)
|
||||||
{
|
{
|
||||||
options.Secure = true;
|
options.Secure = true;
|
||||||
|
@ -82,4 +82,4 @@ namespace Microsoft.AspNetCore.Antiforgery.Internal
|
||||||
httpContext.Response.Cookies.Append(_options.CookieName, token, options);
|
httpContext.Response.Cookies.Append(_options.CookieName, token, options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче