proxy_inject_headers
Add or overwrite headers on matching HTTP traffic by creating a passthrough rule with header transforms. Supports request, response, or both directions.
Instructions
Add or overwrite headers on matching traffic. Creates a passthrough rule with header transforms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | No | Hostname to match (optional) | |
| url_pattern | No | URL regex pattern to match (optional) | |
| headers | Yes | Headers to inject (key-value pairs, set value to null to delete a header) | |
| direction | No | Where to inject: request, response, or both | request |
| priority | No | Rule priority (default: 50) |