Skip to main content
Version: v0.x

Attach HTTP headers to requests

Proxyflare makes it easy to add HTTP headers to a Route.

const routes = [
from: { pattern: "*" },
to: { url: "" },
headers: {
request: {
"some-request-header": "header-value",
"another-request-header": "header-value",
response: {
"some-response-header": "header-value",

When an incoming request matches a Route, any configured request and response headers are added to ProxiedRequest and ProxiedResponse, respectively.


A common Configuration error is accidently nesting headers inside the to node. When setting headers, ensure it is set at the top level of your Route, or use Typescript to catch this pitfall automatically!