CORS_ALLOWED_ORIGIN_REGEXES comment for later test
This commit is contained in:
@@ -41,6 +41,15 @@ if not DEBUG:
|
||||
]
|
||||
# CORS_ALLOWED_ORIGINS = [f"https://{API_DOMAIN}", f"http://{API_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
|
||||
# database postgres
|
||||
DATABASES = {
|
||||
|
||||
Reference in New Issue
Block a user