fix: disable HTTPS redirection in Production for Docker deployment

This commit is contained in:
Martin Svrcina 2026-03-21 09:26:17 +01:00
parent b7f9be8fd9
commit 23232f45a4

View File

@ -37,7 +37,10 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
if (!app.Environment.IsProduction())
{
app.UseHttpsRedirection();
}
app.UseCors("AllowAll");