Skip to content

Implement Forwarded header parsing and writing according to specification #46

@Geal

Description

@Geal

In gitlab by @Geal on Apr 11, 2016, 19:14

The current solution is very simple: generate a header Forwarded: for=client_ip;by=front_ip" and delete any Forwarded, X-Forwarded-For, X-Forwarded-Proto, X-Forwarded-Port headers provided by the client.

A more correct solution would, according to the specification, parse any of those headers in a structure assembling forwarding info, check the list of forwarded addresses (with the by element as well), delete the incoming headers, then write out a correct Forwarded header

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions