Configuration for modifying HTTP headers in tunnel requests.
// Add a custom header{ key: "X-Custom-Header", value: "my-value", action: "add" }// Remove a header{ key: "X-Unwanted-Header", action: "remove" }// Update an existing header{ key: "User-Agent", value: "MyApp/1.0", action: "update" } Copy
// Add a custom header{ key: "X-Custom-Header", value: "my-value", action: "add" }// Remove a header{ key: "X-Unwanted-Header", action: "remove" }// Update an existing header{ key: "User-Agent", value: "MyApp/1.0", action: "update" }
The action to perform: add, remove, or update.
The header key.
Optional
The header value (optional, required for add/update).
Configuration for modifying HTTP headers in tunnel requests.
Example