allow all cors

This commit is contained in:
Parsa Nazer
2024-12-26 00:04:01 +03:30
parent a5ef616258
commit be4fa50984
+3 -2
View File
@@ -39,8 +39,9 @@ if not DEBUG:
f"https://{DOMAIN}", f"https://{DOMAIN}",
f"http://{DOMAIN}", f"http://{DOMAIN}",
] ]
CORS_ALLOWED_ORIGINS = [f"https://{API_DOMAIN}", f"http://{API_DOMAIN}", # CORS_ALLOWED_ORIGINS = [f"https://{API_DOMAIN}", f"http://{API_DOMAIN}",
f"http://{DOMAIN}", f"https://{DOMAIN}", ] # f"http://{DOMAIN}", f"https://{DOMAIN}", ]
CORS_ALLOW_ALL_ORIGINS = True
# database postgres # database postgres
DATABASES = { DATABASES = {
'default': { 'default': {