【问题标题】:How to stop localhost http://localhost from switching to https://localhost如何阻止 localhost http://localhost 切换到 https://localhost
【发布时间】:2015-03-06 15:58:42
【问题描述】:

我正在编写一个 Web 应用程序,http://localhost:3000 正在重定向到 https://localhost:3000

一个月前,当我完成另外两个应用程序的编写时,这还没有发生。在过去的一个月里,我从使用 Sinatra 转到了 Rails,尽管我之前使用过 Rails,没有任何这些问题。

我能做些什么来停止这种强制切换??

【问题讨论】:

    标签: ruby-on-rails ruby-on-rails-3 localhost


    【解决方案1】:

    这可能是你的浏览器造成的,因为你访问了HTTPS地址的应用程序,它会自动切换到HTTPS版本的网站。

    Here you have more information for Firefox,但解决方案是更改设置并将browser.urlbar.autoFill 设置为false。其他选项可能是清除历史记录。

    【讨论】:

    • 干杯!这完美地解决了它,删除了我的历史记录。你知道这是为什么吗?
    • @NAltun 这是 Firefox 处理事情的方式,为用户提供更安全的网络。
    猜你喜欢
    • 1970-01-01
    • 2020-12-28
    • 2020-01-15
    • 1970-01-01
    • 2020-03-23
    • 1970-01-01
    • 2021-01-20
    • 2019-10-31
    • 2019-10-05
    相关资源
    最近更新 更多