How to make API calls to local server using self signed certificate?

Viewed 17

I have a api (node.js) running on https://localhost:3002 which is using a self signed cert I generated using this

https://trendoceans.com/how-to-create-https-server-in-node-js/

And I have a web app running from vite tooling. Also in https. When I make a all from the web app to the api, I get

GET https://localhost:3002/create net::ERR_CERT_AUTHORITY_INVALID

How can I get this to work?

0 Answers
Related