diff --git a/backend/core/settings.py b/backend/core/settings.py index 276129f..9d3dc36 100644 --- a/backend/core/settings.py +++ b/backend/core/settings.py @@ -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 = {