dotnet/aspnetcore

Allow customization of cookie consent value for more flexibility

Open

#39,597 建立於 2022年1月18日

在 GitHub 查看
 (6 留言) (0 反應) (0 負責人)C# (10,653 fork)batch import
area-networkinghelp wanted

倉庫指標

Star
 (37,933 star)
PR 合併指標
 (平均合併 16天 9小時) (30 天內合併 258 個 PR)

描述

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

We are setting the consent cookie for the eTLD+1 with the value 1 if the user agreed with an expiration of 1 year and with the value -1 with an expiration for the session when the user disagreed. This kind of flexibility is currently not possible with the build-in cookie consent feature of asp net core.

Describe the solution you'd like

A way to customize the validation of the HasConsent in the ResponseCookiesWrapper

Additional context

No response

貢獻者指南