Get angular-cli to ng serve over HTTPS

后端 未结 9 1489
一整个雨季
一整个雨季 2020-11-28 02:59

The following doesn\'t seem to do anything.

ng serve --ssl true --ssl-key  --ssl-cert 

Creating the

9条回答
  •  北海茫月
    2020-11-28 03:40

    To complement this solution, if you ever wonder how to generate key and certificate for localhost, here is a great step by step article about it:

    https://medium.freecodecamp.org/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec

提交回复
热议问题