From 10e86e3e393f728f1f63bb187990fa4623837b06 Mon Sep 17 00:00:00 2001 From: ferocknew Date: Thu, 7 Dec 2023 12:37:25 +0800 Subject: [PATCH] Update settings.py --- rustdesk_server_api/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rustdesk_server_api/settings.py b/rustdesk_server_api/settings.py index df310d3..ca0e852 100644 --- a/rustdesk_server_api/settings.py +++ b/rustdesk_server_api/settings.py @@ -14,7 +14,7 @@ from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent - +CSRF_TRUSTED_ORIGINS = [os.environ.get("CSRF_TRUSTED_ORIGINS", "None")] # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ @@ -126,4 +126,4 @@ if DEBUG: else: - STATIC_ROOT = os.path.join(BASE_DIR, 'static') # 新增 \ No newline at end of file + STATIC_ROOT = os.path.join(BASE_DIR, 'static') # 新增