This website collects cookies to deliver better user experience
Run creat-react-app with HTTPS
Run creat-react-app with HTTPS
Introduction
In current days we host websites on Vercel and Netlify and we are automatically assigned a generated SSL to provide with Secured connection(HTTPS), but in the development period we are unaware of the process to run it with HTTPS and we miss out on some testing which works only on HTTPS like google apis, etc.
Steps
Configure creat-react-app project to handle https
Generate SSL Certificates for localhost
Add certificates to the project
Trust certificate in browser
Run the project secured
Configure creat-react-app project to handle https
Add a file .env in the root directory of the project with the line
HTTPS=true
Generate SSL Certificates for localhost
Follow this article to generate a SSL certificate for localhost. and place the certificates in the root directory.