Skip to content

Commit 5efbb1e

Browse files
committed
Remove https redirection
1 parent d6dbd09 commit 5efbb1e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Program.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@
2323
}
2424
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
2525

26-
// Only use HTTPS redirection in production
27-
if (!app.Environment.IsDevelopment())
28-
{
29-
app.UseHttpsRedirection();
30-
}
26+
app.UseForwardedHeaders();
3127

3228
app.UseAntiforgery();
3329

0 commit comments

Comments
 (0)