zalando/logbook

Unable to remove only certain cookies

pzemanek73 opened this issue · 2 comments

Detailed Description

Hi, I don't seem to be able to remove just some cookies by any method I've tried.
In other words for multi value headers, remove just some values.
Can it be done ?

Context

We need to be able to log just some select cookies.

Possible Implementation

Would be nice to have methods like removeCookies in HeaderFilters as there's already replaceCookies....

Your Environment

  • Version used: 3.2.0 latest
  • Link to your project:

Thx!

If obfuscation of the cookies would be sufficient, you could try using the CookieHeaderFilter, or consider implementing your own HeaderFilter that'll have the filtering logic you need.

This issue has automatically been closed due to no activities. If the issue still exists in the latest version of the Logbook, please feel free to re-open it.