-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Fallback to X-Forwarded-* headers
* Fallback to X-Forwarded-* headers This uses the first value from X-Forwarded-Host and X-Forwarded-Proto if they're present and the standard Forwarded header is not. * Update parseForwarded to handle X-Forwarded-* This updates the signature for parseForwarded to take in the headers and handle the logic of falling back to X-Forwarded-* headers. * Update src/util/HeaderUtil.ts Co-authored-by: Ruben Verborgh <[email protected]> * Inline parseXForwarded helper Additionally fixes a typo, updates a unit test, and removes a typing that is no longer necessary. * Tweak handling of X-Forwarded value checking and assignment * Fix: terminology & consistency suggestions from review Co-authored-by: Ruben Verborgh <[email protected]> Co-authored-by: Ruben Verborgh <[email protected]> Co-authored-by: Wouter Termont <[email protected]>
- Loading branch information
1 parent
e2284c4
commit de51a23
Showing
6 changed files
with
131 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters