-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "headers requiring opt-in" for pass-through (#2007)
## Motivation for the change, related issues We're building a plugin that pulls remote data into WordPress during page render using Block Bindings and most endpoints require an Authorization header. ## Implementation details The code speaks for itself, but it's just a single line change to remove `Authorization` from the array of headers that get stripped from the request. ## Testing Instructions (or ideally a Blueprint) Make a remote request from playground that sends an Authorization header and see that the header makes it to the remote host. --------- Co-authored-by: Brandon Payton <[email protected]>
- Loading branch information
1 parent
00a4433
commit 68f5388
Showing
4 changed files
with
155 additions
and
21 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