Skip to content

fix: strip Host on cross-origin redirects#856

Merged
ryanfowler merged 1 commit into
mainfrom
fix/cross-origin-redirect-host
Jul 12, 2026
Merged

fix: strip Host on cross-origin redirects#856
ryanfowler merged 1 commit into
mainfrom
fix/cross-origin-redirect-host

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Summary

  • strip explicit Host headers when following cross-origin redirects
  • allow the transport to regenerate Host from the redirect destination
  • preserve custom Host headers for same-origin redirects
  • add cross-origin and same-origin regression coverage

Validation

  • cargo fmt
  • cargo test --locked --all-features --test http cross_origin_redirect_strips_explicit_sensitive_headers
  • cargo test --locked --all-features --test http same_origin_redirect_preserves_explicit_host_header

@ryanfowler ryanfowler merged commit 12e0399 into main Jul 12, 2026
4 checks passed
@ryanfowler ryanfowler deleted the fix/cross-origin-redirect-host branch July 12, 2026 02:05
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