only allow essential cookies when cookie consent not granted.

This commit is contained in:
Ben
2025-02-26 19:41:58 +08:00
parent b47bf40e8f
commit 6dddd8eff8
10 changed files with 101 additions and 34 deletions

View File

@ -233,6 +233,7 @@ namespace Oqtane
app.UseAuthorization();
app.UseAntiforgery();
app.UseCookiePolicy();
app.UseCookieConsent();
if (_useSwagger)
{