From 613e1fbf47e4b5e95e57709214a1430071bb4168 Mon Sep 17 00:00:00 2001 From: Ross Miller Date: Sat, 7 Mar 2026 11:19:45 +0000 Subject: [PATCH] Fix --- BudgetApp/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BudgetApp/Program.cs b/BudgetApp/Program.cs index 1f0e434..94df78f 100644 --- a/BudgetApp/Program.cs +++ b/BudgetApp/Program.cs @@ -112,7 +112,7 @@ if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Error", createScopeForErrors: 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(); + if (bool.Parse(Environment.GetEnvironmentVariable("ENABLE_HSTS") ?? "false")) app.UseHsts(); } app.UseStatusCodePagesWithReExecute("/not-found"); app.UseHttpsRedirection();