原因:2023年11月1日,chrome發布HTTPS-Upgrades功能,在用戶訪問 http:// 的舊鏈接之后,會自動嘗試跳轉到通過加密的 https:// 協議,訪問該網站。且探測到 https 服務存在也會自動改成 https。
親測兩種方案可行:
方案1:清除chrome的所有cookie
方案2:刪除HSTS domain配置
1、輸入地址:chrome://net-internals/#hsts
2、打開Delete domain security policies
3、輸入域名刪除
注意:我這里測試需要刪除當前域名以及對應的頂級域名才有效
比如zhanglei.nasfuns.fun得同時刪除zhanglei.nasfuns.fun、nasfuns.fun