From be4fa509843c81855f5ffc118150196c94a7b17b Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Thu, 26 Dec 2024 00:04:01 +0330 Subject: [PATCH] allow all cors --- backend/core/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/core/settings.py b/backend/core/settings.py index 25e8555..75226ed 100644 --- a/backend/core/settings.py +++ b/backend/core/settings.py @@ -39,8 +39,9 @@ if not DEBUG: f"https://{DOMAIN}", f"http://{DOMAIN}", ] - CORS_ALLOWED_ORIGINS = [f"https://{API_DOMAIN}", f"http://{API_DOMAIN}", - f"http://{DOMAIN}", f"https://{DOMAIN}", ] + # CORS_ALLOWED_ORIGINS = [f"https://{API_DOMAIN}", f"http://{API_DOMAIN}", + # f"http://{DOMAIN}", f"https://{DOMAIN}", ] + CORS_ALLOW_ALL_ORIGINS = True # database postgres DATABASES = { 'default': {