Skip to content

Commit 0a6ced4

Browse files
tvlooyjaviereguiluz
authored andcommitted
Update form_csrf_caching.rst
1 parent 136dadf commit 0a6ced4

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)