-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for setting vary header in plugins (#1660)
This changes the behaviour of the CorsLayer so that a default Vary header is only set if not specified in a user plugin. This means that a value can now be set from a plugin. When processing the response (after all plugin processing is completed), if there is no Vary header, then the router will insert one with a value of "origin". fixes: #1297 Co-authored-by: Jeremy Lempereur <[email protected]>
- Loading branch information
1 parent
4f19b3c
commit 0901b4e
Showing
4 changed files
with
62 additions
and
4 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