![]() We are telling vue cli we want to use this particular certificate and key. Instead of simply setting https to true, we are passing an object with a key and cert to https. Now, you need to point to where your certificate file is. You can obviously have other stuff in there, but the main thing is that you have https with children of key and cert. So to try and make a full answer in one place, here it goes.įirst, inside of make sure you include const fs = require('fs') The questions are basically, how do we tell the browsers that "I know it is an invalid certificate, but I'm ok with it, because I'm developing a site locally." Jianwu Chen's answer helped me out, but to help those in the comments that wanted an expanded answer, I'm creating this answer. ![]() In the latest vuejs (as of May 7, 2018), you need to add a "" in the project root directory:
0 Comments
Leave a Reply. |