From ae5eba7fde97fc70c70cff2b56e8649cadc33a02 Mon Sep 17 00:00:00 2001 From: Ryan Peters Date: Thu, 16 Feb 2023 10:11:17 -0500 Subject: [PATCH] use https redirection --- WeatherDashboard.Web/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/WeatherDashboard.Web/Program.cs b/WeatherDashboard.Web/Program.cs index 1f4d143..0ece14d 100644 --- a/WeatherDashboard.Web/Program.cs +++ b/WeatherDashboard.Web/Program.cs @@ -13,6 +13,7 @@ var app = builder.Build(); if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Home/Error"); + app.UseHttpsRedirection(); } app.UseStaticFiles();