Allow CORS from all fediverse.space subdomains

This commit is contained in:
Tao Bojlén 2019-02-27 09:09:23 +00:00
parent f1be2e3be3
commit 648f225772
1 changed files with 3 additions and 5 deletions

View File

@ -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\/?$', )