Skip to content

Conversation

@bneradt
Copy link
Contributor

@bneradt bneradt commented Nov 18, 2025

This adds a new set_sendto_headers configuration option that allows setting arbitrary HTTP headers (including the Host header) on requests to sendto destinations when cookie rules match. Header values support dynamic substitution of regex capture groups ($1, $2, etc.) and path variables ($path, $cr_req_url, etc.). When the Host header is set via this option, pristine_host_hdr is automatically disabled for that transaction.

@bneradt bneradt added this to the 10.2.0 milestone Nov 18, 2025
@bneradt bneradt self-assigned this Nov 18, 2025
This adds a new set_sendto_headers configuration option that allows
setting arbitrary HTTP headers (including the Host header) on requests
to sendto destinations when cookie rules match. Header values support
dynamic substitution of regex capture groups ($1, $2, etc.) and path
variables ($path, $cr_req_url, etc.). When the Host header is set via
this option, pristine_host_hdr is automatically disabled for that
transaction.
@bneradt bneradt force-pushed the cookie_remap_set_host_header branch from de9c992 to 4cf9b07 Compare November 18, 2025 22:42
@bneradt bneradt changed the title cookie_remap: set_sendto_headers YCPI-6246: cookie_remap: set_sendto_headers Nov 18, 2025
@bneradt bneradt changed the title YCPI-6246: cookie_remap: set_sendto_headers cookie_remap: set_sendto_headers Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant