提交 8b4dca10 编写于 作者: C Carl Lerche

ActionController::Base.request_forgery_protection_token should actually be the...

ActionController::Base.request_forgery_protection_token should actually be the name of the token and not true.
上级 58796dcf
......@@ -12,7 +12,7 @@ module RequestForgeryProtection
included do
# Sets the token parameter name for RequestForgery. Calling +protect_from_forgery+
# sets it to <tt>:authenticity_token</tt> by default.
config.request_forgery_protection_token ||= true
config.request_forgery_protection_token ||= :authenticity_token
# Controls whether request forgergy protection is turned on or not. Turned off by default only in test mode.
config.allow_forgery_protection ||= true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册