gpt4 book ai didi

ruby-on-rails - 在 Heroku 上降级到免费 dyno 后出现 SSL 错误

转载 作者:太空宇宙 更新时间:2023-11-03 14:24:54 27 4
gpt4 key购买 nike

我最近将我的一个 Heroku 应用程序降级为免费的 dyno - 结果,SSL 被撤销(因为我使用的是付费 dyno 提供的 SSL)。现在,当我访问我的网站 URL 时,它给我这个错误:ERR_SSL_PROTOCOL_ERROR

我编辑了我的 production.rb 文件以设置:config.force_ssl = false 并发布了该代码,但它仍然将我的站点重定向到 https 当我尝试连接 http 时。

现在,让事情复杂化:

  • 这仅适用于我的自定义域 - .herokuapp.com 域工作正常
  • 它在自定义域和 herokuapp.com 域的隐身模式下运行良好

我已尝试清除 cookie 和缓存(过去 7 天),但仍然无效:/

有什么想法吗?

编辑:

如果有帮助,我在 Windows 10 上使用 Chrome

最佳答案

鉴于您使用的是 Chrome,根据此 answer ,您需要按照以下步骤阻止 Chrome 将 http://重定向到 https://。

Anon is right about STS, but there is a way to specifically delete your domain from the set. Go to chrome://net-internals/#hsts. Enter 3rdrevolution.com under Delete domain security policies and press the Delete button.

Now go to chrome://settings/clearBrowserData, tick the box Cached images and files and press click the button Clear data.

关于ruby-on-rails - 在 Heroku 上降级到免费 dyno 后出现 SSL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58029101/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com