How to use https instead of http in create-react-app?
You just need to use HTTPS=true configuration. You can edit your package.json scripts section:
1 2 3 | "scripts": { "start": "set HTTPS=true && react-scripts start" } |
or just run set HTTPS=true && npm start
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.