diff --git a/Selector.CLI/Selector.CLI.csproj b/Selector.CLI/Selector.CLI.csproj index 2b240fa..585dc79 100644 --- a/Selector.CLI/Selector.CLI.csproj +++ b/Selector.CLI/Selector.CLI.csproj @@ -31,7 +31,7 @@ PreserveNewest - + PreserveNewest diff --git a/Selector.Web/Selector.Web.csproj b/Selector.Web/Selector.Web.csproj index 64aa487..360c456 100644 --- a/Selector.Web/Selector.Web.csproj +++ b/Selector.Web/Selector.Web.csproj @@ -41,7 +41,7 @@ PreserveNewest - + PreserveNewest diff --git a/Selector.Web/Startup.cs b/Selector.Web/Startup.cs index 985bcee..c129f86 100644 --- a/Selector.Web/Startup.cs +++ b/Selector.Web/Startup.cs @@ -113,6 +113,7 @@ namespace Selector.Web if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); + app.UseHttpsRedirection(); } else { @@ -121,7 +122,6 @@ namespace Selector.Web //app.UseHsts(); } - app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting();