当运行一些配置了HTTPS的本地HTTP服务器时,由于安全问题,可能无法在Chrome浏览器上打开本地页面。
Certificate is invalid for localhost in Chrome
Summary
Developers often encounter certificate errors when running HTTPS services on localhost in Chrome, as the browser flags these self-signed certificates as untrusted. To bypass this security restriction for trusted local development environments, a simple workaround involves enabling a specific Chrome configuration flag. Navigate to chrome://flags/#allow-insecure-localhost in the browser, activate the 'Allow insecure localhost' option, and then relaunch Chrome to apply the change, resolving the certificate validation issue.
chrome://flags/#allow-insecure-localhost
在浏览器地址栏中输入以上内容并启用该标志。
RELATED
COMMENTS
2Same problem here. Any help?
this is not working in crome 119... guide