Skip to content

Commit 64c2232

Browse files
committed
ensure csrf token
1 parent db6e410 commit 64c2232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_unicorn/views/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def csrf_handle(func):
509509
CSRF token is not required.
510510
"""
511511
if get_setting("USE_CSRF_TOKEN", True):
512-
return csrf_protect(func)
512+
return ensure_csrf_cookie(csrf_protect(func))
513513
return csrf_exempt(func)
514514

515515

0 commit comments

Comments
 (0)