diff --git a/backend/backend/settings/production.py b/backend/backend/settings/production.py index 928cc7b..3e0f690 100644 --- a/backend/backend/settings/production.py +++ b/backend/backend/settings/production.py @@ -4,9 +4,7 @@ DEBUG = False ALLOWED_HOSTS = ['backend.fediverse.space'] -CORS_ORIGIN_WHITELIST = [ - 'fediverse.space', - 'www.fediverse.space', - 'staging.fediverse.space', +CORS_ORIGIN_REGEX_WHITELIST = [ + r'^(https?:\/\/)?(\w+\.)?(.*)?fediverse-space\.netlify\.com\/?$', + r'^(https?:\/\/)?(\w+\.)?(.*)?fediverse\.space\/?$', ] -CORS_ORIGIN_REGEX_WHITELIST = (r'^(https?:\/\/)?(\w+\.)?(.*)?fediverse-space\.netlify\.com\/?$', )