Using HTTPS in Create React App
Learn how to serve pages over HTTPS in Create React App development. After testing your application with http, you might want to serve your pages over HTTPS too. The following ways describe how to do it.
Setting environment variable
Set HTTPS environment variable using
..and then start your application using..
Setting start script
..Or you can set it with your start script in package.json like..
"start": "export HTTPS=true&&PORT=3320 react-scripts start"