Browse Source
Merge pull request #10009 from abpframework/IsEssential
Bypass the cookie consent policy check.
pull/10020/head
liangshiwei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
0 deletions
-
framework/src/Volo.Abp.AspNetCore.MultiTenancy/Volo/Abp/AspNetCore/MultiTenancy/AbpMultiTenancyCookieHelper.cs
-
framework/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/RequestLocalization/AbpRequestCultureCookieHelper.cs
|
|
@ -19,6 +19,7 @@ namespace Volo.Abp.AspNetCore.MultiTenancy |
|
|
{ |
|
|
{ |
|
|
Path = "/", |
|
|
Path = "/", |
|
|
HttpOnly = false, |
|
|
HttpOnly = false, |
|
|
|
|
|
IsEssential = true, |
|
|
Expires = DateTimeOffset.Now.AddYears(10) |
|
|
Expires = DateTimeOffset.Now.AddYears(10) |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
|
|
|
@ -15,6 +15,7 @@ namespace Microsoft.AspNetCore.RequestLocalization |
|
|
CookieRequestCultureProvider.MakeCookieValue(requestCulture), |
|
|
CookieRequestCultureProvider.MakeCookieValue(requestCulture), |
|
|
new CookieOptions |
|
|
new CookieOptions |
|
|
{ |
|
|
{ |
|
|
|
|
|
IsEssential = true, |
|
|
Expires = DateTime.Now.AddYears(2) |
|
|
Expires = DateTime.Now.AddYears(2) |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
|