我刚刚偶然发现了 chrome 中一个非常有用的标志(对于开发人员):
chrome://flags/#allow-insecure-localhost
该标志描述为:
Allow invalid certificates for resources loaded from localhost.
Allows requests to localhost over HTTPS even when an invalid certificate is presented. – Mac, Windows, Linux, Chrome OS, Android
总是必须为多种服务生成自签名证书,这很好,但它引出了问题——这安全吗?一直开着这样安全吗?
如果这不安全,可能的攻击是什么?