From 25144245db9e4814d27778475ebdbfd0a364bb32 Mon Sep 17 00:00:00 2001 From: Whit Waldo Date: Thu, 9 Oct 2025 15:56:08 -0500 Subject: [PATCH] HTTPS redirection is a known issue with the Dapr SDK Signed-off-by: Whit Waldo --- actors/csharp/sdk/service/Program.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/actors/csharp/sdk/service/Program.cs b/actors/csharp/sdk/service/Program.cs index 36c6abd81..b3d332ae2 100644 --- a/actors/csharp/sdk/service/Program.cs +++ b/actors/csharp/sdk/service/Program.cs @@ -14,19 +14,6 @@ var app = builder.Build(); -if (app.Environment.IsDevelopment()) -{ - app.UseDeveloperExceptionPage(); -} -else -{ - // By default, ASP.Net Core uses port 5000 for HTTP. The HTTP - // redirection will interfere with the Dapr runtime. You can - // move this out of the else block if you use port 5001 in this - // example, and developer tooling (such as the VSCode extension). - app.UseHttpsRedirection(); -} - app.MapActorsHandlers(); app.Run();