mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Note issue in related query
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user