Strict-Transport-Security Header
Learn about the health checks that check for cookie hijacking and protocol downgrade attacks protection.
How to fix this health check
Using the UseHsts extension method
if (builder.Environment.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseHsts();
}
//...
}Last updated
Was this helpful?