Bug 63080 - Support rfc7239 Forwarded header
Summary: Support rfc7239 Forwarded header
Status: NEW
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 8.5.x-trunk
Hardware: PC Mac OS X 10.1
: P2 enhancement (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords: Beginner
Depends on:
Blocks:
 
Reported: 2019-01-16 20:03 UTC by bclozel
Modified: 2019-01-21 12:28 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bclozel 2019-01-16 20:03:40 UTC
Tomcat supports some "X-Forwarded-*" headers with RemoteIpValve and RemoteIpFilter.

Tomcat could support the rfc7239 specification and its "Forwarded" header.
Comment 1 Christopher Schultz 2019-01-18 17:38:20 UTC
I would recommend adding a new configuration option which specifies which strategy to use: legacy, rfc7239, or "both" where both types of headers are accepted. The default should be the old behavior.

Care to provide a patch?