From c80b763c41a6280f92f53bbcdccc5609ccd42e12 Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Sun, 10 Dec 2017 13:01:33 -0400 Subject: [PATCH] Add more info to crsf error mail --- scipost/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scipost/views.py b/scipost/views.py index 8aaa124d1..4d68a4396 100644 --- a/scipost/views.py +++ b/scipost/views.py @@ -1340,7 +1340,9 @@ def csrf_failure(request, reason=""): 'GET': dict(request.GET), 'POST': post_data, 'META': {k: str(v) for k, v in request.META.items()}, + 'COOKIES': {k: str(v) for k, v in request.COOKIES.items()}, } + raise body = json.dumps(body, indent=4) -- GitLab