From 3f627fcf343a17ca281c2767a33564c027098f1e Mon Sep 17 00:00:00 2001 From: barhen Date: Fri, 22 Dec 2023 13:40:04 -0500 Subject: [PATCH] added https redirection --- Server/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Server/Program.cs b/Server/Program.cs index 5814888..611c3d8 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -9,6 +9,7 @@ using Biskilog_Accounting.ServiceRepo; using Biskilog_Accounting.Shared.Interfaces; using Biskilog_Accounting.Server.Services; using Biskilog_Accounting.Server.POSModels; +using Microsoft.AspNetCore.Builder; var builder = WebApplication.CreateBuilder(args); @@ -105,6 +106,7 @@ else app.UseExceptionHandler("/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); + app.UseHttpsRedirection(); } app.UseHttpsRedirection();