feat: add HSTS middleware for production environment

This commit is contained in:
Jean Gatto
2025-08-22 09:37:19 -03:00
parent 56571ab003
commit 422cada734
+5
View File
@@ -107,6 +107,11 @@ if (app.Environment.IsDevelopment())
app.UseDeveloperExceptionPage();
}
if (app.Environment.IsProduction())
{
app.UseHsts();
}
app.UseHealthChecks("/health", new HealthCheckOptions
{
Predicate = _ => true,