If you’re a developer and test websites offline, then you might have noticed an error message “Your connection is not private” in Chrome browser. If you have made so far, then chances you also seeing a same error message. Normally this error flash up when because of two reasons: first it’s a client-side issue and second there’s problem with website certificate. Since you’re testing offline with Chrome browser it’s possible to get rid of this error message using an “allow-insecure-localhost” experimental feature available in the Chrome browser.

Allow invalid certificates for resources loaded from localhost

Here’s how you can enable the above discussed experimental feature and get rid of “Your connection is not private” in Chrome for local host. Launch Chrome browser and then visit: chrome://flags/#allow-insecure-localhost Using “Allow invalid certificates for resources loaded from localhost” drop-down change the setting from Disabled to Enabled. Relaunch Chrome browser to enable the feature. Doing this will “Allow insecure connections on localhost in Chrome” and fix the issue.

Allow invalid certificates for resources loaded from localhost in Chrome v81 - 89