Changes between Initial Version and Version 1 of Ticket #32817


Ignore:
Timestamp:
Jun 4, 2021, 2:33:16 PM (3 years ago)
Author:
Chris Jerdonek
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32817 – Description

    initial v1  
    44* "CSRF token has incorrect length"
    55
    6 I noticed that it would be relatively easy to include in these messages whether the token was obtained from `POST` data or a custom header, which would be useful for troubleshooting. The new messages could look e.g. like--
     6I noticed that it would be relatively easy to include in these messages whether the token was obtained from `POST` data or a custom header, which would be useful for troubleshooting. The messages are specified [https://github.com/django/django/blob/213850b4b9641bdcb714172999725ec9aa9c9e84/django/middleware/csrf.py#L411-L417 here in the code]. The new messages could look e.g. like--
    77
    88* "CSRF token (from POST) incorrect"
Back to Top