From b58c4ef781ba5da521d798672a5ddf09c9e7c1fa Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 5 Sep 2023 09:08:06 +0300 Subject: [PATCH] add CSRF_TRUSTED_ORIGINS with django 4 --- webvirtcloud/settings.py.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webvirtcloud/settings.py.template b/webvirtcloud/settings.py.template index 3c741e2..50dce23 100644 --- a/webvirtcloud/settings.py.template +++ b/webvirtcloud/settings.py.template @@ -15,6 +15,8 @@ DEBUG = False ALLOWED_HOSTS = ["*"] +CSRF_TRUSTED_ORIGINS = ['http://localhost',] + # Application definition INSTALLED_APPS = [ "django.contrib.auth",