Enable “Allow invalid certificates for resources loaded from localhost” flag in Chrome. Want to know why? Keep reading the blog post.
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.
As an independent platform, it takes a lot of effort to create and curate quality content daily. Our content is totally funded by users like you.
Therefore, if you find information on this website useful, we kindly ask for your support in maintaining the longevity of our platform. If each person who benefits from our website contributes, we can secure a brighter future for our website.