This paragraph in particular is Servlet-specific when it does not need to be:
If this is not enough, Spring Framework provides a ForwardedHeaderFilter. You can register it as a servlet filter in your application by setting server.forward-headers-strategy is set to
FRAMEWORK.