From 1316a31fcfe8456881b1bb9ddee018103306b69b Mon Sep 17 00:00:00 2001 From: SKairinos Date: Wed, 18 Dec 2024 23:20:34 +0000 Subject: [PATCH] fix: test CSRF_HEADER_NAME --- settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/settings.py b/settings.py index b682a9d..16f8633 100644 --- a/settings.py +++ b/settings.py @@ -56,3 +56,5 @@ # https://docs.djangoproject.com/en/3.2/topics/http/sessions/ SESSION_ENGINE = "api.models.session" + +CSRF_HEADER_NAME = "HTTP_CSRFTOKEN"