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') # 新增