Skip to content

Allow customization of cookie consent value for more flexibility #39597

@msschl

Description

@msschl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionshelp wantedUp for grabs. We would accept a PR to help resolve this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions