default ForwardedHeader configutaion
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 276
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Is your feature request related to a problem? Please describe the problem.
When running behind a reverse proxy, we need to use the forwarded headers to get the real request info, currently, we have `ASPNETCORE_FORWARDEDHEADERS_ENABLED` env config to enable the forwarded headers middleware, but we still need to configure the `ForwardedHeadersOptions` manually in our code, how about support configure the options from configuration like the `ASPNETCORE_FORWARDEDHEADERS_ENABLED` env, so that we could configure forwarded header related from configuration only, no need to make updates in code
### Describe the solution you'd like
maybe add similar configs like
`ASPNETCORE_FORWARDEDHEADERS_Headers`/`ASPNETCORE_FORWARDEDHEADERS_KnownNetworks`/`ASPNETCORE_FORWARDEDHEADERS_KnownProxies`
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.