Skip to content

Commit 3c94d1d

Browse files
committed
minor #9144 Update form_csrf_caching.rst (tvlooy)
This PR was submitted for the 4.0 branch but it was merged into the 2.7 branch instead (closes #9144). Discussion ---------- Update form_csrf_caching.rst Commits ------- 0a6ced4 Update form_csrf_caching.rst
2 parents 136dadf + 0a6ced4 commit 3c94d1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http_cache/form_csrf_caching.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ Another option would be to load the form via an uncached AJAX request, but
3636
cache the rest of the HTML response.
3737

3838
Or you can even load just the CSRF token with an AJAX request and replace the
39-
form field value with it.
39+
form field value with it. Take a look at :doc:`hinclude.js </templating/hinclude>`
40+
for a nice solution.
4041

4142
.. _`Cross-site request forgery`: http://en.wikipedia.org/wiki/Cross-site_request_forgery
4243
.. _`Security CSRF Component`: https://github.com/symfony/security-csrf

0 commit comments

Comments
 (0)