Changes between Initial Version and Version 1 of Ticket #32902, comment 1


Ignore:
Timestamp:
Jul 4, 2021, 9:42:08 AM (3 years ago)
Author:
Chris Jerdonek

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32902, comment 1

    initial v1  
    1515-
    1616-        if not request.META.get("CSRF_COOKIE_USED", False):
    17 +        # Prevent the cookie from being set twice.
     17+        # Prevent _set_token() from being called twice.
    1818+        if getattr(response, 'csrf_cookie_set', False):
    1919             return response
Back to Top