Get angular-cli to ng serve over HTTPS

后端 未结 9 1506
一整个雨季
一整个雨季 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:28

    If you don't want to go for configurations just add --ssl

    ng serve --ssl
    

    perfectly working it will automatically creating a certificate for you tested on chrome browser it says not trusted connection just proceed

    hope this helps !!!

提交回复
热议问题