[Vuejs]-Error: Can't set headers after they are sent.

0👍

You cannot loop responses per one request, it’s illegal in Express, returning more than one response per one request will crash your NodeJS (Express will return an unhandledException). Loop, insert the data into an array then res send values from the array (out of the loop, of course).

Leave a comment