You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AuthenticityToken does not work when configured via "set :protection" #2037
Activity
dentarg commentedon Aug 2, 2024
I think
useshould be an arrayosbre commentedon Aug 4, 2024
@dentarg same result when using it as an array:
It just doesn't get applied
dentarg commentedon Aug 8, 2024
It works. Your session is dropped. I ran with this patch
That logs
If you do
set :protection, use: :authenticity_token, reaction: :deny, the response will be403 Forbiddendentarg commentedon Aug 8, 2024
You can also see it working if you do
enable :logging