网页调试显示的警告,这什么情况?

clipboard.png

clipboard.png

This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.gl/zmWq3m.

怎么修正这个警告?

阅读 45.9k
4 个回答

简单的说,通过HTTP协议传递密码是非常不安全的,所以Google弹出了这个警告,提示你该是时候把你的网站升级为HTTPS了。

因为你的页面里面有input type是password,谷歌浏览器建议升级https传输密码

楼主 ,给你的input密码框加上 autocomplete="new-password" 这段属性即可解决,原因是blink内核的自动填充问题,如果页面用了https协议则忽略.

推荐问题