Changes between Initial Version and Version 1 of Ticket #32817
- Timestamp:
- Jun 4, 2021, 2:33:16 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32817 – Description
initial v1 4 4 * "CSRF token has incorrect length" 5 5 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--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 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-- 7 7 8 8 * "CSRF token (from POST) incorrect"