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
Copy file name to clipboardExpand all lines: guides/source/working_with_javascript_in_rails.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -320,8 +320,8 @@ added to the form that the `button_to` helper renders internally:
320
320
321
321
### Ajax Requests
322
322
323
-
When making non-GET requests from JavaScript the `X-CSRF-Token` header is required.
324
-
Without this header requests won't be accepted by Rails.
323
+
When making non-GET requests from JavaScript, the `X-CSRF-Token` header is required.
324
+
Without this header, requests won't be accepted by Rails.
325
325
326
326
NOTE: This token is required by Rails to prevent Cross-Site Request Forgery (CSRF) attacks. Read more in the [security guide](security.html#cross-site-request-forgery-csrf).
0 commit comments