DEV Community

Discussion on: How to implement email functionality with Node.js, React.js, Nodemailer, and OAuth2

Collapse
senoulynn profile image
Senou Lynn

Hey! Good news! You've done everything right. What's stopping this from working is most likely your anti-virus. While I don't fully understand CORS, it has something to do with your anti-virus flagging that type of communication on your local server. I was able to bypass this by going into my Avast anti-virus => Settings => Protection => Core Shields => Mail Shield => Unclick scan outbound emails (SMTP).

Please do some research before doing this because I'm not 100% certain as to how this affects your machines security.

Collapse
godswillcode profile image
Godswillcode

Ok thanks bro, its now working