forked from yuzutech/kroki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for issue with CORS and Origin: null in vertx-web
The CORS handling mechanism of vertx-web should allow an HTTP header with `Origin: null`, but currently it doesn't; see vert-x3/vertx-web#1933 for the details. While that bug is fixed, this commit adds a workaround that enables Kroki to handle that header value properly. The workaround just defines a regexp that allows any value in that header; vertx-web just matches the value using that regexp, and if it matches the request continues its processing as normal.
- Loading branch information
1 parent
c4e0bb3
commit 368d326
Showing
2 changed files
with
28 additions
and
1 deletion.
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