From 4dc3e92c4c4d31814c42a517edf886411dd5acb1 Mon Sep 17 00:00:00 2001 From: Nick Seguin Date: Sun, 25 Feb 2024 19:46:29 -0600 Subject: [PATCH 1/3] include antiforgerytoken in contactform --- src/NSeguin.Dev.Web.Client/Shared/ContactForm.razor | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NSeguin.Dev.Web.Client/Shared/ContactForm.razor b/src/NSeguin.Dev.Web.Client/Shared/ContactForm.razor index c7695b8..a71e422 100644 --- a/src/NSeguin.Dev.Web.Client/Shared/ContactForm.razor +++ b/src/NSeguin.Dev.Web.Client/Shared/ContactForm.razor @@ -11,6 +11,7 @@
+

Contact Me

-- 2.45.2 From 1c984859cb749be4236d5f61c2aee5010639dbb3 Mon Sep 17 00:00:00 2001 From: Nick Seguin Date: Sun, 25 Feb 2024 19:50:03 -0600 Subject: [PATCH 2/3] Revert "include antiforgerytoken in contactform" This reverts commit 4dc3e92c4c4d31814c42a517edf886411dd5acb1. --- src/NSeguin.Dev.Web.Client/Shared/ContactForm.razor | 1 - 1 file changed, 1 deletion(-) diff --git a/src/NSeguin.Dev.Web.Client/Shared/ContactForm.razor b/src/NSeguin.Dev.Web.Client/Shared/ContactForm.razor index a71e422..c7695b8 100644 --- a/src/NSeguin.Dev.Web.Client/Shared/ContactForm.razor +++ b/src/NSeguin.Dev.Web.Client/Shared/ContactForm.razor @@ -11,7 +11,6 @@
-

Contact Me

-- 2.45.2 From 8bcba134f1c3fb2b23e33f90657b0e29e0bf1151 Mon Sep 17 00:00:00 2001 From: Nick Seguin Date: Sun, 25 Feb 2024 19:56:49 -0600 Subject: [PATCH 3/3] attempt to fix secret client --- src/NSeguin.Dev.Web/Program.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/NSeguin.Dev.Web/Program.cs b/src/NSeguin.Dev.Web/Program.cs index 20068c3..41f49a0 100644 --- a/src/NSeguin.Dev.Web/Program.cs +++ b/src/NSeguin.Dev.Web/Program.cs @@ -45,7 +45,7 @@ if (builder.Environment.IsStaging() || builder.Environment.IsProduction()) } a.Connect(connectionString) - .ConfigureKeyVault(kv => kv.SetCredential(new DefaultAzureCredential())); + .ConfigureKeyVault(kv => kv.SetCredential(new EnvironmentCredential())); }); } else @@ -68,7 +68,6 @@ builder.Services.Configure( builder.Services.AddTransient(); builder.Services.AddOptions().BindConfiguration("Mail").ValidateDataAnnotations(); - builder.Services.AddHttpLogging( o => { @@ -86,8 +85,6 @@ if (app.Environment.IsDevelopment()) else { app.UseExceptionHandler("/Error", true); - // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. - app.UseHsts(); } app.UseHttpLogging(); -- 2.45.2