spring-framework / org.springframework.web.filter / ForwardedHeaderFilter / setRemoveOnly

setRemoveOnly

open fun setRemoveOnly(removeOnly: Boolean): Unit

Enables mode in which any "Forwarded" or "X-Forwarded-*" headers are removed only and the information in them ignored.

Parameters

removeOnly - whether to discard and ignore forwarded headers

Since
4.3.9