CORS_ALLOWED_ORIGIN_REGEXES comment for later test

This commit is contained in:
Parsa Nazer
2025-01-11 21:52:23 +03:30
parent a751b260d4
commit 784c28c985
+9
View File
@@ -41,6 +41,15 @@ if not DEBUG:
] ]
# 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}", ]
# import re
# CORS_ALLOWED_ORIGIN_REGEXES = [
# re.compile(r'^https?://(?:\w+\.)?{}$'.format(re.escape(API_DOMAIN))),
# re.compile(r'^https?://(?:\w+\.)?{}$'.format(re.escape(DOMAIN))),
# re.compile(r'^https?://(?:\w+\.)?localhost:\d+$'),
# re.compile(r'^https?://(?:\w+\.)?127\.0\.0\.1:\d+$'),
# ]
CORS_ALLOW_ALL_ORIGINS = True CORS_ALLOW_ALL_ORIGINS = True
# database postgres # database postgres
DATABASES = { DATABASES = {