Skip to content

conditionally set headers (if not already set) in redirect response #190

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

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

ljeda
Copy link
Contributor

@ljeda ljeda commented Jan 12, 2025

suggested fix for possibility to override default headers in redirect response.

fixes #187

@ljeda
Copy link
Contributor Author

ljeda commented Jan 16, 2025

such a shape of a PR was suggested in PR #188 as an alternative way to fix the issue #187. Could I ask someone to have a look on this?

@ljeda
Copy link
Contributor Author

ljeda commented Jan 31, 2025

hi @wesleytodd, could you help with getting these changes checked? I think you mentioned something along these lines as potentially acceptable. I'm being pushed by security officer to have this fixed and closed.

Copy link
Member

@wesleytodd wesleytodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@wesleytodd
Copy link
Member

I am pretty sure I will be putting together a release for this in the coming days, so I will make sure this gets merged before then but I will leave it open so other contributors have a chance to see it again and provide any last minute feedback.

@ljeda
Copy link
Contributor Author

ljeda commented Feb 17, 2025

fair enough, many thanks for coming back to me! :)

@wesleytodd wesleytodd merged commit b51ab84 into expressjs:master Feb 20, 2025
2 checks passed
@ljeda
Copy link
Contributor Author

ljeda commented Mar 18, 2025

@wesleytodd sorry for pushing, but is there any timeline on when the new release with this fix could be expected?

@UlisesGascon UlisesGascon mentioned this pull request Mar 26, 2025
Phillip9587 added a commit to Phillip9587/serve-static that referenced this pull request Mar 27, 2025
Phillip9587 pushed a commit to Phillip9587/serve-static that referenced this pull request Mar 27, 2025
…onse (expressjs#190)

* conditionally set headers (if not already set) in redirect response

* add new function description

---------

Co-authored-by: ljeda <[email protected]>
UlisesGascon pushed a commit that referenced this pull request Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

too wide CSP header in redirect response
3 participants