Reputation: 334
Is there an easy way to do this? I've googled and none of the answers worked for me. I need to do this to enable a facebook login which only works through HTTPS. I've generated the SSL certificates however I don't know how to configure the server to enable HTTPS.
Upvotes: 2
Views: 4167
Reputation: 433
If you are using the new(er) vue-cli-service then you can run the development server as per https://cli.vuejs.org/guide/cli-service.html#vue-cli-service-serve
Simply edit your package.json:
"scripts": {
"serve": "vue-cli-service serve --https",
...
}
I was trying to work out how to get Chrome on Android to successfully use the unsafely-treat-insecure-origin-as-secure flag, without any luck. At least this allows me to test my vue aplicat
Upvotes: 5
Reputation: 334
The solution was instead of running the server with yarn serve
, use yarn serve --https
Upvotes: 2