From 6866f57a8e95a603467925461958e462f1e6b443 Mon Sep 17 00:00:00 2001 From: "Amir.H Khademi" Date: Thu, 7 Mar 2024 23:19:18 +0330 Subject: [PATCH] add httpredirection in program --- .version | 2 +- NetinaShop.Api/NetinaShop.Api.csproj | 4 ++-- NetinaShop.Api/Program.cs | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.version b/.version index 046c6ec..f766936 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.17.20.27 \ No newline at end of file +0.17.20.28 \ No newline at end of file diff --git a/NetinaShop.Api/NetinaShop.Api.csproj b/NetinaShop.Api/NetinaShop.Api.csproj index a5a0a02..358c61b 100644 --- a/NetinaShop.Api/NetinaShop.Api.csproj +++ b/NetinaShop.Api/NetinaShop.Api.csproj @@ -6,8 +6,8 @@ enable true Linux - 0.17.20.27 - 0.17.20.27 + 0.17.20.28 + 0.17.20.28 diff --git a/NetinaShop.Api/Program.cs b/NetinaShop.Api/Program.cs index 9f4fc16..e6dd881 100644 --- a/NetinaShop.Api/Program.cs +++ b/NetinaShop.Api/Program.cs @@ -94,6 +94,7 @@ builder.Host.ConfigureContainer(builder => var app = builder.Build(); + // Configure the HTTP request pipeline. if (app.Environment.IsDevelopment()) { @@ -101,6 +102,7 @@ if (app.Environment.IsDevelopment()) //app.UseSwaggerUI(); } app.UseCors("CorsPolicy"); +app.UseHttpsRedirection(); app.UseCustomSwagger(siteSetting.BaseUrl);