remove-request-cookie

Removes one cookie on the way to the service and keeps the rest - typically a cookie of another application on the same host, or an analytics cookie, that the service would mistake for its own or has no business reading.

Parameters

Name Type Required What it does
name string yes The cookie removed.

Example

filters:
  - type: remove-request-cookie
    args:
      name: JSESSIONID

Notes

The Cookie header is one string carrying every cookie, so this filter rebuilds it rather than deleting it: removing the header outright would take the application's own session with it. That is also why remove-request-header is the wrong tool for one cookie.

Meerkat's own cookies never reach the upstream: the gateway removes them from every proxied request. You do not need this filter for them.

Cookie names are case-sensitive: JSESSIONID and jsessionid are two different cookies.