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