Text in Expression Editor:
starts_with(http.request.uri.path, "/en/")
Selected operation under Modify response header: Add
Header name: set-cookie
Value: cookiename=value
Create a response header transform rule to add a set-cookie
HTTP header to the response with a static value (cookiename=value
).
The following response header transform rule adds a header named set-cookie
with a static value (cookiename=value
) to the HTTP response:
Text in Expression Editor:
starts_with(http.request.uri.path, "/en/")
Selected operation under Modify response header: Add
Header name: set-cookie
Value: cookiename=value
This rule would keep any existing set-cookie
headers already present in the HTTP response.