Skip to content

Add request header with a static value

Create a request header modification rule (part of Transform Rules) to add an X-Source HTTP header to the request with a static value (Cloudflare).

The following HTTP request header modification rule adds a header named X-Source with a static value (Cloudflare) to the request:

Text in Expression Editor:

starts_with(http.request.uri.path, "/en/")

Selected operation under Modify request header: Set static

Header name: X-Source

Value: Cloudflare