athena-framework / athena

An ecosystem of reusable, independent components
https://athenaframework.org
MIT License
211 stars 17 forks source link

Allow customizing trusted proxy header names #444

Closed Blacksmoke16 closed 1 month ago

Blacksmoke16 commented 1 month ago

Context

Not all proxies use the de-facto standard x-forwarded-* header names. E.g. CloudFront uses cloudfront-forwarded-proto. This PR enables the header names to be overridden for a specific ATH::Request::ProxyHeader to support this use case.

Changelog


Before merging, remember to add the athena-framework/athena prefix to the PR number in the PR title