【问题标题】:How to prevent redirects from http to https on localhost in chrome and firefox?如何防止在 chrome 和 firefox 中从 http 重定向到 localhost 上的 https?
【发布时间】:2021-06-09 11:29:07
【问题描述】:

为什么我不能再访问我的任何本地开发站点了? Firefox 和 Chrome 都重定向到 HTTPS(localhost/site 变为 https://localhost/site 并抛出错误)...

我不会在我的 localhost 开发机器上设置 SSL ...如何防止所有浏览器重定向到 HTTPS?

【问题讨论】:

  • 据我所知,如果您不指定协议,一些网络浏览器已将其默认行为更改为默认使用 https。所以你必须在地址栏中输入http://localhost/site
  • 是的,但这不起作用......即使指定协议,它仍然会强制重定向。重新安装了两个浏览器......解决了这个问题。现在,可能是某种缓存问题……但无法清除缓存……因此重新安装。

标签: http redirect https localhost


【解决方案1】:

自动将 http 重定向到 https 通常是由安装新插件或证书引起的。 查看this question 了解如何解决。

【讨论】:

    猜你喜欢
    • 2017-09-28
    • 2018-08-01
    • 2016-12-09
    • 2022-01-12
    • 1970-01-01
    • 2014-10-09
    • 1970-01-01
    • 1970-01-01
    • 2020-10-19
    相关资源
    最近更新 更多