Error: Setting Header After It Is Sent - Help Me Understand Why?
I don't get how I'm setting a header after it is sent to client? code: During form submission a post ajax request is made, the response is a json object that is returned to the cli
Solution 1:
console.log(body.req);
this is wrong. It should be console.log(req.body);
. This generally happens when the program exited but still, there is a function callback in the stack. This should fix your problem. If it didn't please share the console log if printed any
Post a Comment for "Error: Setting Header After It Is Sent - Help Me Understand Why?"