diff --git a/BudgetApp.Api/Program.cs b/BudgetApp.Api/Program.cs index 40fb15f..b9eb6d5 100644 --- a/BudgetApp.Api/Program.cs +++ b/BudgetApp.Api/Program.cs @@ -37,7 +37,10 @@ if (app.Environment.IsDevelopment()) app.UseSwaggerUI(); } -app.UseHttpsRedirection(); +if (!app.Environment.IsProduction()) +{ + app.UseHttpsRedirection(); +} app.UseCors("AllowAll");