DEV Community

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

Collapse
godswillcode profile image
Godswillcode

It didnt work for me

it saying Error Error: self signed certificate in certificate chain

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

Collapse
jlong4223 profile image
Jared Long Author

Interesting - I haven't seen this error! How far are you able to get before you run into this error?