Changes between Initial Version and Version 1 of Ticket #32902, comment 1
- Timestamp:
- Jul 4, 2021, 9:42:08 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32902, comment 1
initial v1 15 15 - 16 16 - if not request.META.get("CSRF_COOKIE_USED", False): 17 + # Prevent the cookie from being settwice.17 + # Prevent _set_token() from being called twice. 18 18 + if getattr(response, 'csrf_cookie_set', False): 19 19 return response