From 23232f45a4175d38ee1572587c78ac15023c59b7 Mon Sep 17 00:00:00 2001 From: Martin Svrcina Date: Sat, 21 Mar 2026 09:26:17 +0100 Subject: [PATCH] fix: disable HTTPS redirection in Production for Docker deployment --- BudgetApp.Api/Program.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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");