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
Stop failing GSRF token generation when session is disabled
In theory this should have warned early that the CSRF check
will fail, which would have been less puzzling for the developer.
However there are several cases where we render forms but the session
is inacessible. That's the case of turbo (hotwired/turbo-rails#243)
as well as some others.
So unless we figure a proper way to detect these cases, we're better
to not cause this error.
Writing to a disabled session directly will still raise, this
only silence it for the specific case of CSRF.
0 commit comments