From d5acae765c8490ed35105ed49a86ddadafaa0367 Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Wed, 22 Apr 2026 14:12:47 +0330 Subject: [PATCH] edit trusted origin --- main/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/settings.py b/main/settings.py index 2552600..2f698c8 100644 --- a/main/settings.py +++ b/main/settings.py @@ -224,7 +224,9 @@ SPECTACULAR_SETTINGS = { AUTH_USER_MODEL = 'users.User' CORS_ORIGIN_ALLOW_ALL = True CORS_ALLOW_ALL_ORIGINS = True -CSRF_TRUSTED_ORIGINS = ['http://*', 'https://*', 'http://*.gooyal.com', 'https://*.gooyal.com'] +CSRF_TRUSTED_ORIGINS = ['http://*', 'https://*', + 'http://*.gooyal.com', 'https://*.gooyal.com', + 'http://*.gooyal.ir', 'https://*.gooyal.ir'] JALALI_DATE_DEFAULTS = { 'Strftime': {