-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: added handlers dependency for cors management * feat: added cors config * feat: load cors middleware * use cors middle ware in service * feat: make raccoon depend on cors env instead of ws specific env * fix: correct env variable name * feat: added default values for CORS changes * feat: update .env.test files * add default Cors function * feat: add default headers used by raccoon * fix: update env variables * fix: added debug cache files to gitignore * feat: added integration test to check cors headers * refactor: change to have standard middleware apply/hook layer * fix: test names for CORS feature * refactor: remove unwanted viper.SetDefault call in setAllowedHeaders * refactor: remove deprecated env variable * feat: use cors enabled config in upgrader config init * refactor: move middleware apply layer to service * feat: added integration tests for preflight options request with correct and incorrect headers * feat: improve allowed headers fetching logic * feat: update to more sensible defaults * docs: add documentation for cors configs * revert changes to introduce `SERVER_WEBSOCKET_CHECK_ORIGIN` * fix: uncomment commented integration test * refactor: fix formatting of the docs * fix: incorrect logic for deduplication in cors headers config * feat: updated the config docs
- Loading branch information
1 parent
b7d1fcf
commit db7f808
Showing
14 changed files
with
322 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ coverage | |
*.idea/ | ||
raccoon | ||
.temp | ||
__debug.* |
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
Oops, something went wrong.