On my local machine, my nestjs application is running on port 3000 and I have one controller with two endpoints:
@Get()
getAll() {
return this.httpService.get('https://localhost:3000/something')
}
@Get('something')
getSomething() {
return [1, 2, 3];
}
When I try to run the getAll
endpoint, I am getting Error: unable to verify the first certificate
. I understand that the issue is to do with a SSL certificate, which would probably not be an issue on a remote environment with a properly issued SSL certificate, so I am just wondering if there is a way to get around this locally?