i'm using React with Vite in Frontend inside a Docker, and then in another Docker Node Express Nginx.
I have set a self-certificate but in postman when I do a request to the API through https it triggers a warning saying it's self-certificated.
In frontend, I can access through the Web with HTTPS with the following code in vite, but still showing the certificate does not work
export default defineConfig({ server: { https: { key: "/app/certs/privkey.pem", cert: "/app/certs/fullchain.pem", }, host: "0.0.0.0", },})
POST https://XXXX.com/api/users/login net::ERR_CERT_AUTHORITY_INVALID
Don't know what more to try to be honest...