I am developing an ionic react app that needs Google / Facebook login. Facebook requires the site to be a https site. So i did the following:
- configured /etc/hosts to set localhost.mydomain.com to 127.0.0.1
- Obtained a real SSL cert and private key from godaddy for mydomain, and have it in my filesystem
- I want to use: ionic serve --https, but it is mysterious NOT DOCUMENTED anywhere. Whatever doc there is refers to --ssl (experimental), with no further instructions on how to configure and place the cert & key files
Why is this so obscure, when its such a common case? I did a search for this, and i see that a number of questions to this effect remain unanswered, or challenged with “why do you need https in localhost”
1 post - 1 participant