diff --git a/arkindex/project/settings.py b/arkindex/project/settings.py index 279cdf71ab7352ae32f4776e8019f5ecc9b22089..d3ced2fcf45ce0df41608894550b800a5194a722 100644 --- a/arkindex/project/settings.py +++ b/arkindex/project/settings.py @@ -416,7 +416,7 @@ if conf['cache']['type'] in (CacheType.Redis, CacheType.Memcached): else: SESSION_ENGINE = 'django.contrib.sessions.backends.db' -CORS_ORIGIN_WHITELIST = conf['cors']['origin_whitelist'] +CORS_ALLOWED_ORIGINS = conf['cors']['origin_whitelist'] CORS_ALLOW_CREDENTIALS = True CORS_ALLOW_HEADERS = default_headers + ( 'cache-control', # Allow the frontend to prevent caching some API requests @@ -425,7 +425,7 @@ CORS_URLS_REGEX = r'^/(api|ponos)/.*$' # Support CORS suffixes if conf['cors']['suffixes']: - CORS_ORIGIN_REGEX_WHITELIST = [ + CORS_ALLOWED_ORIGIN_REGEXES = [ r"^https://.+{}".format(suffix) for suffix in conf['cors']['suffixes'] ]