Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created August 25, 2022 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/10b94a69a080b7844f0c48d52f4aae70 to your computer and use it in GitHub Desktop.
Save lgolubyev/10b94a69a080b7844f0c48d52f4aae70 to your computer and use it in GitHub Desktop.
services.Configure<CookiePolicyOptions>(options =>
{
options.CheckConsentNeeded = context => true;
options.ConsentCookieValue = "true";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment