The out of the box MVC partial (_CookieConsentPartial.cshtml) for setting an acceptance cookie in ASP.NET Core 3.1 web application works fine when running the site in Visual