Note issue in related query

This commit is contained in:
Chris Smowton
2025-09-29 18:43:59 +01:00
committed by GitHub
parent 18c5cb10d9
commit f1239352ce

View File

@@ -42,6 +42,12 @@
vulnerability - for example if parts of the session are memoized. Calling vulnerability - for example if parts of the session are memoized. Calling
<code>protect_from_forgery with: :exception</code> can help to avoid this <code>protect_from_forgery with: :exception</code> can help to avoid this
by raising an exception on an invalid CSRF token instead. by raising an exception on an invalid CSRF token instead.
Note that Rails version 5 and later
automatically run <code>protect_from_forgery with: :exception</code>
by default, but manually calling <code>protect_from_forgery</code> with
no <code>with</code> argument will downgrade protection to null the
session rather than raise an exception.
</p> </p>
</recommendation> </recommendation>