-
Notifications
You must be signed in to change notification settings - Fork 825
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
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client #412
Comments
any updates about this Issue ? :/ |
Not sure if it's relevant, but I also had this error in Angular application, while trying to proxy POST request via It appears that
Yes, it could also be a function, not an object. But for POST and PUT
Using |
After new research I figured out that Luckily, you could substitute it with
If you have multiple
Or, more elegant solution.
|
Little update regarding this. we faced an issue with same error message using express with |
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client.
I want to use both
pathRewrite
andfollowRedirects
.I use the vue webpack config this funtions.
But When I add
followRedirects
config attribute,the console show me this error.Steps to reproduce
proxy
config tovue.config.js
file.pathRewrite
andfollowRedirects
toproxy
node.yarn serve
to start project.Here is my
vue.config.js
file:Here is the error message displayed in the console:
please help me.
The text was updated successfully, but these errors were encountered: