Skip to content Skip to sidebar Skip to footer

Console Logging Data With Ajax Post Method

So I am trying to make a post request via jquery and then console.log the data object in the callback function of the request. client-side: var save = $('

Solution 1:

The error 'can't set headers after they are sent' means that you are trying to respond multiple times. The final res.send is being sent initially, and then once the exec callback's if/else is evaluated, a second res.send is attempted.


Post a Comment for "Console Logging Data With Ajax Post Method"