https://linen.dev logo
Title
d

Devaraj Rathinasamy

03/24/2023, 9:36 PM
Hi, Is there a way to exclude/ignore some specific headers from being proxied with wiremock proxying/recording? Please let me know if there are any options available. For instance, I would like to exclude the header X-forwarded-for before wiremock proxying the request to the destination.
t

Tom

03/27/2023, 10:36 AM
Hi @Devaraj Rathinasamy the only way to do this at the moment is to write a
StubRequestFilter
extension class that removes the header prior to subsequent processing.
1
d

Devaraj Rathinasamy

03/27/2023, 2:56 PM
Thank you! Let me try it with the filter.