Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1486

Cant set HTTPS in backend or front end

$
0
0

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...


Viewing all articles
Browse latest Browse all 1486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>