vue.js - 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.
解决方案
推荐阅读
- java - 限制 ImageView 移动
- laravel - 创建新的laravel项目并出现此错误
- node.js - 如何在 Mongoose 中获得点赞数
- python-3.8 - Python中的循环和列表
- javascript - 如何动态设置以编程方式生成的 SVG 样式?
- php - 为什么一个函数返回一个数组而另一个函数返回 Laravel 中的对象
- java - 当试图创建一个新的 com. 假设。.pdf 文档(contentFilePath),加盖的 pdf 崩溃并出现异常
- google-apps-script - 从多个选项卡到 VLOOKUP 汇总列的脚本 从每个选项卡中提取数据 wrt 值
- spring - 是否可以将最后一个元素与 JPA 和 Spring boot 分组
- typescript - RXJS:在继续之前获取可观察的结果