Hi, Is there a way to exclude/ignore some specific...
# wiremock-java
d
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
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
Thank you! Let me try it with the filter.