You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I go to the website, I can click accept GDPR cookie, it shows up in browser's cookie list with accepted status. Working as intended.
When I go to the manager, I can log in, read, open everything. But every POST inside the manager returns 400 bad request. Removing the GDPR cookie config from Startup fixes the issue.
options.MinimumSameSitePolicy = Microsoft.AspNetCore.Http.SameSiteMode.Unspecified;
Edge:worksBrave: bad request
Firefox: bad request
all other options, including options.HttpOnly = HttpOnlyPolicy.None and options.Secure = CookieSecurePolicy.Always or any mix or other modes of the three don't work at all.
Noticed the issue #1829, but I'm using the latest Piranha.
Steps to reproduce:
dotnet new piranha.razor
add to ConfigureServices
services.Configure<CookiePolicyOptions>(options =>{// Sets the display of the Cookie Consent banner (/Pages/Shared/_CookieConsentPartial.cshtml).// This lambda determines whether user consent for non-essential cookies is needed for a given request. options.CheckConsentNeeded =context =>true; options.MinimumSameSitePolicy = Microsoft.AspNetCore.Http.SameSiteMode.Strict;});
it doesn't matter if the GDPR cookie is accepted, since the manager should be marked essential Piranha 10.0.1 and newer?
I feel like I'm missing something obvious... Do I need to add it via options.Services.AddCookiePolicy and options.Builder.UseCookiePolicy().Build() or something now?
Interestingly, an older .NET Core 3.1 and Piranha 8.3.1 project with UseCookiePolicy() works without issue.
The text was updated successfully, but these errors were encountered:
Hello,
I needed to add GDPR accept cookie, standard official implementation.
Using:
When I go to the website, I can click accept GDPR cookie, it shows up in browser's cookie list with accepted status. Working as intended.
When I go to the manager, I can log in, read, open everything. But every POST inside the manager returns
400 bad request
. Removing the GDPR cookie config from Startup fixes the issue.all other options, including
options.HttpOnly = HttpOnlyPolicy.None
andoptions.Secure = CookieSecurePolicy.Always
or any mix or other modes of the three don't work at all.Log from Edge:
Noticed the issue #1829, but I'm using the latest Piranha.
Steps to reproduce:
ConfigureServices
add
UseCookiePolicy()
toConfigure
it doesn't matter if the GDPR cookie is accepted, since the manager should be marked essential Piranha 10.0.1 and newer?
I feel like I'm missing something obvious... Do I need to add it via
options.Services.AddCookiePolicy
andoptions.Builder.UseCookiePolicy().Build()
or something now?Interestingly, an older .NET Core 3.1 and Piranha 8.3.1 project with UseCookiePolicy() works without issue.
The text was updated successfully, but these errors were encountered: