From a9df789b04d8ef81ffefffa8fadfbfd1bd3cf9d2 Mon Sep 17 00:00:00 2001 From: Basyrov Rustam Date: Fri, 6 Jun 2025 14:43:36 +0300 Subject: [PATCH] add trusted origins --- mysite/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mysite/settings.py b/mysite/settings.py index 790e7aa..bc8a238 100644 --- a/mysite/settings.py +++ b/mysite/settings.py @@ -26,6 +26,7 @@ SECRET_KEY = os.getenv("DJANGO_SECRET_KEY") # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False +CSRF_TRUSTED_ORIGINS = ["https://app.saccada.xyz"] ALLOWED_HOSTS = ["localhost", "app.saccada.xyz"]