Skip to content
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

Recommended fix for CORs immutable headers issue #268

Open
wants to merge 1 commit into
base: v5.x
Choose a base branch
from

Conversation

jacwright
Copy link

Fixes #261 by creating a new response with mutable headers and avoiding duplicating the body. The correct fix for what 74f63ab#diff-a1624121bc1fee18f8a5c2b2f907f01ba9c56a50068007e4c5da2911e91ea6df was trying to achieve.

This doesn't have changelog or version bumps. Just wanted to share how the code should run. I have it successfully running in my project.

Fixes kwhitley#261 by creating a new response with mutable headers and avoiding duplicating the body. The correct fix for what kwhitley@74f63ab#diff-a1624121bc1fee18f8a5c2b2f907f01ba9c56a50068007e4c5da2911e91ea6df was trying to achieve.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

corsify creating unused readable stream
1 participant