Modify Headers

Beta and uses: Event Gateway
Related Documentation
OpenAPI Specifications
Incompatible with
on-prem

This policy is used to set or remove record headers.

Schema

Example configuration

Example configurations for the Modify Headers policy.

Remove and replace a header

The following example removes a header named example-header1 and replaces it with example-header2:

policies:
  - name: modify-headers
    type: modify_headers
    spec:
      actions:
      - type: remove
        remove:
        - key: example-header
        set:
        - key: example-header2
          value: example
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!