diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Pages/_Host.cshtml b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Pages/_Host.cshtml
index 66a7aa0628..4eff49f3b4 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Pages/_Host.cshtml
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Pages/_Host.cshtml
@@ -9,16 +9,7 @@
RazorComponentsWeb-CSharp
-
-
-
-
-
-
+
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_CookieConsentPartial.cshtml b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_CookieConsentPartial.cshtml
deleted file mode 100644
index 999a0ed5bf..0000000000
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_CookieConsentPartial.cshtml
+++ /dev/null
@@ -1,25 +0,0 @@
-@using Microsoft.AspNetCore.Http.Features
-
-@{
- var consentFeature = Context.Features.Get();
- var showBanner = !consentFeature?.CanTrack ?? false;
- var cookieString = consentFeature?.CreateConsentCookie();
-}
-
-@if (showBanner)
-{
-
- Use this space to summarize your privacy and cookie use policy.
Learn More.
-
-
-
-}
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_Layout.cshtml b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_Layout.cshtml
index 5506d943d3..198a48ef80 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_Layout.cshtml
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_Layout.cshtml
@@ -4,17 +4,7 @@
@ViewData["Title"] - Company.WebApplication1
-
-
-
-
-
-
-
+
@@ -44,37 +34,17 @@
-
-
+
-
-
-
-
-
-
-
-
+
+
@RenderSection("Scripts", required: false)
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_ValidationScriptsPartial.cshtml b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_ValidationScriptsPartial.cshtml
index c442042cb0..2ef6ebd63d 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_ValidationScriptsPartial.cshtml
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_ValidationScriptsPartial.cshtml
@@ -1,18 +1,5 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Startup.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Startup.cs
index ea58c1f885..b3737d13d8 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Startup.cs
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Startup.cs
@@ -52,11 +52,6 @@ namespace Company.WebApplication1
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
- services.Configure(options =>
- {
- // This lambda determines whether user consent for non-essential cookies is needed for a given request.
- options.CheckConsentNeeded = context => true;
- });
#if (IndividualLocalAuth)
services.AddDbContext(options =>
@@ -152,8 +147,6 @@ namespace Company.WebApplication1
#endif
app.UseStaticFiles();
- app.UseCookiePolicy();
-
app.UseRouting();
#if (OrganizationalAuth || IndividualAuth)
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs
index 0638b76cab..698ab40241 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs
@@ -52,11 +52,6 @@ namespace Company.WebApplication1
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
- services.Configure(options =>
- {
- // This lambda determines whether user consent for non-essential cookies is needed for a given request.
- options.CheckConsentNeeded = context => true;
- });
#if (IndividualLocalAuth)
services.AddDbContext(options =>
@@ -153,8 +148,6 @@ namespace Company.WebApplication1
#endif
app.UseStaticFiles();
- app.UseCookiePolicy();
-
app.UseRouting();
#if (OrganizationalAuth || IndividualAuth)
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Views/Shared/_CookieConsentPartial.cshtml b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Views/Shared/_CookieConsentPartial.cshtml
deleted file mode 100644
index 8f96286262..0000000000
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Views/Shared/_CookieConsentPartial.cshtml
+++ /dev/null
@@ -1,25 +0,0 @@
-@using Microsoft.AspNetCore.Http.Features
-
-@{
- var consentFeature = Context.Features.Get();
- var showBanner = !consentFeature?.CanTrack ?? false;
- var cookieString = consentFeature?.CreateConsentCookie();
-}
-
-@if (showBanner)
-{
-
- Use this space to summarize your privacy and cookie use policy.
Learn More.
-
-
-
-}
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Views/Shared/_Layout.cshtml b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Views/Shared/_Layout.cshtml
index b370df12dd..5ae18ac630 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Views/Shared/_Layout.cshtml
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Views/Shared/_Layout.cshtml
@@ -4,17 +4,7 @@
@ViewData["Title"] - Company.WebApplication1
-
-
-
-
-
-
-
+
@@ -44,39 +34,17 @@
-
-
+
-
-
-
-
-
-
-
-
-
+
+
-
@RenderSection("Scripts", required: false)