Why nodemailer to send it twice?

For some reason, pismo is sent twice.

smtpTransport.sendMail(mailOptions, function(error, response) {
 if(error) {
Res. status(500).json({
 message: 'Message not send. We have issues on our server.'
 else {
 if (response.accepted.length !== 0) {
Res. status(200).json({
 message: 'Your message sent!'

Sent from a form on the website. I.e. user fills the form and sends POST, and I'm on the server to process the fields and send it Pelmo ourselves. At the front Vue.js and Axios. Maybe because the request Gwiazdy for some reason sent? Don't understand.
June 7th 19 at 14:42
1 answer
June 7th 19 at 14:44
1. Check whether one POST is sent from the user
2. Your route is really in one place is connected? To verify do console.log('any') before sending, possibly in Your application logic code send is called twice
1. From a browser (from the site on another domain) sent to the post twice. From Postman once, everything is OK.

The problem is most likely due to preflight, n oja I can not understand how to fix it? - alyson commented on June 7th 19 at 14:47
Geez, I corrected it I'm a jerk last night put method on the form and the button, so it has been performed twice)) - alyson commented on June 7th 19 at 14:50

Find more questions by tags JavaScriptNode.jsVue.js