Skip to content

Remove UseHttpsRedirection#1781

Merged
alexwarren merged 1 commit into
mainfrom
remove-https-redirection
Jun 28, 2026
Merged

Remove UseHttpsRedirection#1781
alexwarren merged 1 commit into
mainfrom
remove-https-redirection

Conversation

@alexwarren

Copy link
Copy Markdown
Contributor

Summary

  • Removes app.UseHttpsRedirection() entirely — the app runs behind a reverse proxy in all environments, so HTTPS enforcement belongs there, not in the app
  • This was causing a warning in production logs: Failed to determine the https port for redirect
  • Also removes the boilerplate HSTS comment (the call itself is unchanged)

Test plan

  • App starts without the warning in production logs
  • HTTPS continues to work via the reverse proxy as before

The app runs behind a reverse proxy in all environments, so enforcing
HTTPS at the app level is redundant. The middleware was logging a warning
in production because it couldn't determine an HTTPS port.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@alexwarren alexwarren merged commit 374e69e into main Jun 28, 2026
3 checks passed
@alexwarren alexwarren deleted the remove-https-redirection branch June 28, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant