DEV Community

Discussion on: Setup HTTPS in Development With Create React App

Collapse
 
robbiegm profile image
RobbieGM

Why would you do this? Every browser API that requires a secure context works on localhost even without setting up HTTPS on it.

Collapse
 
haloboy777 profile image
Ayush Singh

There are many problems that this video solves.
Sometimes you want to use a custom domain for localhost testing but you don't want to use 'localhost'. In that case the API simply doesn't work and service worker also stops.

Collapse
 
doug profile image
Doug

Biggest reason I had for this was testing CORS configuration. Too many posts on SO show how to "enable all origins", but that's really not the point.