From 199f5328a807e7f6cce1c85e8ad32ea27790f9ee Mon Sep 17 00:00:00 2001 From: j75689 Date: Wed, 18 Oct 2023 20:31:05 +0800 Subject: [PATCH] fix: disable CsrfViewMiddleware --- src/config/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/settings.py b/src/config/settings.py index 1ad3b5a9..56767f27 100644 --- a/src/config/settings.py +++ b/src/config/settings.py @@ -66,7 +66,7 @@ "django.middleware.security.SecurityMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.common.CommonMiddleware", - "django.middleware.csrf.CsrfViewMiddleware", + # "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware",