mkcert: Your connection is not private

20 views Asked by At

Hello everyone I am use vite with vite-plugin-mkcert, i run this commands:

mkcert -install
mkcert localhost 

npm run dev

and on site i get this:

enter image description here enter image description here enter image description here

my vite config is:

import {defineConfig} from'vite'
import mkcert from 'vite-plugin-mkcert'

export default defineConfig({
  server: {
    https: true
  }, // Not needed for Vite 5+ (simply omit this option)
  plugins: [mkcert()]
})

UPDATE

Without vite-plugin-mkcert my proxy server throw [DEPTH_ZERO_SELF_SIGNED_CERT] (https://nodejs.org/api/errors.html#errors_common_system_errors)

0

There are 0 answers