This commit is contained in:
rossmill76 committed 2026-03-07 11:19:45 +00:00
1 parent 779d493513
commit 613e1fbf47
1 file changed
+1 -1
+1 -1
View File
@@ -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();