Policies

Remove Query Parameters Policy

Remove query parameters from the incoming request

Configuration

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

{ "name": "my-remove-query-params-inbound-policy", "policyType": "remove-query-params-inbound", "handler": { "export": "RemoveQueryParamsInboundPolicy", "module": "$import(@zuplo/runtime)", "options": { "params": [ "param1", "param2" ] } } }

Policy Options

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

  • params <string[]> (Required) -
    An array of query parameters to be removed from the incoming request.

Using the Policy

Read more about how policies work

Previous
Form Data to JSON