-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli, handler: Allow to customize CORS handling (#997)
* feat: Add flag to control CORS Origin header (#987) * added flags for CORS header * go fmt * fix: go vet * fix: check Origin to match configured CORS Origin --------- Co-authored-by: Sean Macdonald <[email protected]> * handler: Restrict method overriding to POST requests * handler: Implement more CORS options * Add back support for DisableCors * Add flags for CORS options * Add documentation * Fix flag description * Remove now unneeded -cors-origin flag --------- Co-authored-by: Thomas Müller <[email protected]> Co-authored-by: Sean Macdonald <[email protected]>
- Loading branch information
1 parent
ee90db0
commit a1e1fdf
Showing
5 changed files
with
313 additions
and
58 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
Oops, something went wrong.