edge和chrome禁止本地localhost强制http跳转到https方法

edge:

1.浏览器地址栏输入:edge://net-internals/#hsts

2.找到 Delete domain security policies 設定,輸入localhost按下Delete鍵

chrome:

1.地址栏输入:chrome://net-internals/#hsts

2.点击Domain Security Policy在Query HSTS下输入域名先查询自动转换的域名,点击Query查到说明此域名http转化为https

3.在”Delete Domain security policies”下输入禁止自动转换https的域名localhost,点击Delete,

发表评论