Skip to content

Commit fac208a

Browse files
author
CyberReady
committed
Disable HSTS and HTTPS redirection for containerized environment
1 parent 8277bda commit fac208a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

MoveIT/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
if (!app.Environment.IsDevelopment())
5454
{
5555
app.UseExceptionHandler("/Error", createScopeForErrors: true);
56-
app.UseHsts();
56+
// HSTS / HttpsRedirection intentionally disabled: container exposes HTTP only on 8080.
57+
// Re-enable if/when running behind a reverse proxy that terminates TLS.
5758
}
5859
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
59-
app.UseHttpsRedirection();
6060

6161
app.UseAntiforgery();
6262

0 commit comments

Comments
 (0)