Most of the time, http://localhost behaves like HTTPS for development purposes. However, there are some special cases, such as custom hostnames or using secure across browsers, where you need to explicitly set up your development site to behave like HTTPS to accurately represent how your site works in production.
