From 97eba2390ee0a7c1d318e87f492cb61ea36bdd33 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 19 Jun 2022 14:17:49 +0100 Subject: [PATCH] https redirection --- src/isnd/Startup.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/isnd/Startup.cs b/src/isnd/Startup.cs index f0bb020..00a9d79 100644 --- a/src/isnd/Startup.cs +++ b/src/isnd/Startup.cs @@ -112,11 +112,12 @@ namespace isnd } else { - // app.UseExceptionHandler("/Home/Error"); - app.UseDeveloperExceptionPage(); + app.UseExceptionHandler("/Home/Error"); + app.UseHsts(); dbContext.Database.Migrate(); } + app.UseHttpsRedirection(); app.UseStatusCodePages().UseStaticFiles().UseAuthentication().UseMvc(routes => { routes.MapRoute(