From 88563f1cb85883efce21f34c687284884fb03adf Mon Sep 17 00:00:00 2001 From: Artur Galyamov Date: Thu, 29 Dec 2022 11:29:29 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BF=D0=B5=D1=80=D0=B2=D0=BE=D0=B8=D1=81=D1=82?= =?UTF-8?q?=D0=BE=D1=87=D0=BD=D0=B8=D0=BA=20(origin)=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20csrf=20#27?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crossposting_backend/private/settings.example.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crossposting_backend/private/settings.example.py b/crossposting_backend/private/settings.example.py index 6f51a94..eba2761 100644 --- a/crossposting_backend/private/settings.example.py +++ b/crossposting_backend/private/settings.example.py @@ -7,7 +7,9 @@ DEBUG = False SECRET_KEY = 'django-insecure-aaaa' SALT = 'aaaaaaaa' -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['localhost'] + +CSRF_TRUSTED_ORIGINS = ['http://zakonvremeni.ru:8989',] LOG_DIR = path.join(Path(__file__).resolve().parent.parent.parent, 'logs/')