-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@tus/server: allow passing custom headers #519
@tus/server: allow passing custom headers #519
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature makes a lot of sense.
Docs are still missing though.
d37373a
to
fb7d5b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks. Still need to update the readme to explain this new option and then we're good.
fb7d5b5
to
520a4f4
Compare
@Murderlon documentation updated also added a test |
520a4f4
to
52075fb
Compare
Co-authored-by: Merlijn Vos <[email protected]>
@Murderlon can this be merged now? |
Currently, the list of allowed headers is hard-coded and there is no way to add custom headers if not overwriting the entire OptionHandler.
This PR allows to whitelisting of additional custom headers that can be passed on OPTION responses to pass CORS