How To Get HTTPS Working With localhost
1 min read

How To Get HTTPS Working With localhost

How To Get HTTPS Working With localhost

Introduction

Almost every site you goto is protected by HTTPS. HTTPS allows the sites to be more secure and helps with SEO. But having HTTPS turned on is a problem with developers who are working on their local environment. Most developers run on http://localhost , but when you are using HTTPS, you need to use https://localhost.

Your connection is not private. NET::ERR_CERT_INVALID error on chrome

Turning on HTTPS for Chrome

The easiest way to get to https://localhost without issuing yourself a certificate is turning on flags on Chrome. As of Chrome 88, follow these steps to turn on https to develop on localhost.

  1. Go to chrome://flags/#temporary-unexpire-flags-m87 in the address bar.
  2. Set it to Enabled.
  3. Relaunch Chrome.
  4. Go to chrome://flags/#allow-insecure-localhost in the address bar.
  5. Set it to Enabled and relaunch.