升级到 macOS Catalina 后,我无法让 localhost 在 chrome 上工作。我花了很多时间试图弄清楚为什么我会收到这条消息
localhost normally uses encryption to protect your information. When Google Chrome tried to connect to localhost this time, the website sent back unusual and incorrect credentials. This may happen when an attacker is trying to pretend to be localhost, or a Wi-Fi sign-in screen has interrupted the connection. Your information is still secure because Google Chrome stopped the connection before any data was exchanged.
You cannot visit localhost right now because the website sent scrambled credentials that Google Chrome cannot process. Network errors and attacks are usually temporary, so this page will probably work later.
(我希望我已经截屏了)
最佳答案
我不知道这是否是“最佳”解决方案,但它让我能够再次编码,所以我想我会分享。我被严重卡住了,找不到任何答案,看到有人提到了另一个问题的解决方案。转到 chrome://flags/#allow-insecure-localhost 并更改为启用。
希望这对其他人有帮助。我知道这不是一个真正的问题,但没有真正的方法来分享这个。我想我可以使用 twitter 和 reddit。
关于macos - Catalina 上的本地主机 chrome,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58318233/