gpt4 book ai didi

ruby-on-rails - 错误 'SECURITY WARNING: No secret option provided to Rack::Session::Cookie'

转载 作者:行者123 更新时间:2023-12-03 05:29:37 26 4
gpt4 key购买 nike

Possible Duplicate:
No secret option provided to Rack::Session::Cookie warning?

今天在创建脚手架时遇到此错误:

SECURITY WARNING: No secret option provided to Rack::Session::Cookie. This poses a security threat. It is strongly recommended that you provide a secret to prevent exploits that may be possible from crafted cookies. This will not be supported in future versions of Rack, and future versions will even invalidate your existing user cookies.

但是 key 设置在config/initializers/secret_token.rb中.

我应该做些什么,还是这只是一个标准警告,因为我已经拥有了 key ,所以我可以安全地忽略它?

最佳答案

这是已知的issue正在讨论中。这是由于升级到 Rack 1.4.2 以及您的选择。根据知情人士的说法,在 Rails 更新解决方案之前,您应该忽略该错误或降级到 Rack 1.4.1 ;)

关于ruby-on-rails - 错误 'SECURITY WARNING: No secret option provided to Rack::Session::Cookie',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14191053/

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