Policies

Remove Request Headers Policy

Remove headers from the incoming request.

Configuration

The configuration shows how to configure the policy in the 'policies.json' document.

{ "name": "my-remove-headers-inbound-policy", "policyType": "remove-headers-inbound", "handler": { "export": "RemoveHeadersInboundPolicy", "module": "$import(@zuplo/runtime)", "options": { "headers": [ "x-request-id", "content-type" ] } } }

Policy Options

The options for this policy are specified below. All properties are optional unless specifically marked as required.

  • headers <string[]> (Required) -
    An array of headers to remove from the incoming request.

Using the Policy

Read more about how policies work

Previous
Transform Request Body