Policies

Remove Response Headers Policy

Remove configured headers from the outgoing response.

Configuration

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

{ "name": "my-remove-headers-outbound-policy", "policyType": "remove-headers-outbound", "handler": { "export": "RemoveHeadersOutboundPolicy", "module": "$import(@zuplo/runtime)", "options": { "headers": [ "x-amz-content-sha256", "x-amz-date" ] } } }

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 be removed from the outgoing response.

Using the Policy

Read more about how policies work

Previous
Transform Response Body