Set an HTTP response header to a static value
The following HTTP response header modification rule sets a header named X-Source
to a static value (Cloudflare
) in the response:
Text in Expression Editor:
starts_with(http.request.uri.path, "/en/")
Selected operation under Modify response header: Set static
Header name: X-Source
Value: Cloudflare
This rule would overwrite any existing X-Source
headers already present in the response.