mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #21040 from aditya-kapoor/fix-typo
[ci skip] it should be protect_from_forgery
This commit is contained in:
commit
0a780b1e85
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module ActionController #:nodoc:
|
|||
# Since HTML and JavaScript requests are typically made from the browser, we
|
||||
# need to ensure to verify request authenticity for the web browser. We can
|
||||
# use session-oriented authentication for these types of requests, by using
|
||||
# the `protect_form_forgery` method in our controllers.
|
||||
# the `protect_from_forgery` method in our controllers.
|
||||
#
|
||||
# GET requests are not protected since they don't have side effects like writing
|
||||
# to the database and don't leak sensitive information. JavaScript requests are
|
||||
|
|
Loading…
Reference in a new issue