use https redirection

This commit is contained in:
Ryan Peters 2023-02-16 10:11:17 -05:00
parent 7ed5c8d64e
commit ae5eba7fde

View File

@ -13,6 +13,7 @@ var app = builder.Build();
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Home/Error");
app.UseHttpsRedirection();
}
app.UseStaticFiles();