Skip to content

Sample of custom X-Forwarded-For header name may be misleading #7515

@dasMulli

Description

@dasMulli

Judging from this question on StackOverflow:
https://stackoverflow.com/questions/51228707/configure-asp-net-core-to-work-with-proxy-servers-and-load-balancers

It seems that the sample section for the custom forwarded header name may be confusing and doesn't specifically explain near the sample code that X-Forwarded-For-Custom-Header-Name is meant to be replaced with a string used by a proxy / forwarder.

At the time of writing, it is not yet clear what the OP's problem really is but they seem to have been confused by the sample code.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions