Why am I getting this error when running a Node.js application on localhost?

Question

Grade: Education Subject: Support
Why am I getting this error when running a Node.js application on localhost?
Asked by:
76 Viewed 76 Answers

Answer (76)

Best Answer
(325)
Node.js applications often use HTTPS for development. If your Node.js server is configured to use HTTPS with a self-signed certificate, your browser might reject it due to trust issues. Ensure your Node.js server is configured correctly to generate a valid certificate or that your browser trusts the self-signed certificate.