Hsts
This commit is contained in:
parent
9622dbeaf2
commit
fda43ba2d1
1 changed files with 2 additions and 1 deletions
|
|
@ -972,7 +972,8 @@ public static class HostingExtensions
|
|||
else
|
||||
{
|
||||
app.UseExceptionHandler("/Home/Error");
|
||||
logger.LogInformation("Running in production mode. Ensure the database is migrated.");
|
||||
app.UseHsts();
|
||||
logger.LogInformation("⨝ Running in production mode. Ensure the database is migrated.");
|
||||
await app.MigrateDatabaseAsync();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue