首页 > 解决方案 > How to run Vue-cli project using https on Windows

问题描述

I am trying to run a vue-cli project using https.

As per the instructions here How to run Vue.js dev serve with https?

I've added the https setting to the vue.config.js as per below

module.exports = {
  devServer: {
    https: true
  },

When I run the app it correctly runs as https://localhost:8080 however Chrome throws an ERR_CERT_AUTHORITY_INVALID error.

It appears I need to setup an SSL certificate in Windows and set some configuration in vue.config.js. Does anyone know how to do this? Note, this question applies specifically to Windows.

标签: vue.jsvuejs2ssl-certificate

解决方案


推荐阅读