"Node.js HTTPS test failing—anyone else facing this issue?"
Hey folks,
So I’m trying to run a nodejs https test locally, and it’s just *not* playing nice. I’ve got my server set up with a self-signed cert, but the test keeps throwing errors like "unable to verify the first certificate."
Anyone else run into this?
I’ve tried the usual—adding `rejectUnauthorized: false` in the options, but that feels hacky. Is there a *proper* way to handle this for testing? Or am I missing something obvious?
Also, if you’ve got a solid setup for a nodejs https test, drop your config! Would love to see how others are doing it.
Thanks in advance!
---
*(PS: Yes, I googled. No, the first 5 Stack Overflow answers didn’t help.)*
Hey folks,
So I’m trying to run a nodejs https test locally, and it’s just *not* playing nice. I’ve got my server set up with a self-signed cert, but the test keeps throwing errors like "unable to verify the first certificate."
Anyone else run into this?
I’ve tried the usual—adding `rejectUnauthorized: false` in the options, but that feels hacky. Is there a *proper* way to handle this for testing? Or am I missing something obvious?
Also, if you’ve got a solid setup for a nodejs https test, drop your config! Would love to see how others are doing it.
Thanks in advance!
---
*(PS: Yes, I googled. No, the first 5 Stack Overflow answers didn’t help.)*
