Add header based on a condition

Add a header to a record if it meets a specific condition.

In the following example, if a record’s topic name ends with my_suffix, the policy adds a header named example-header with the value example.

Set up the policy

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!