add www subdomain to CORS whitelist

This commit is contained in:
Tao Bror Bojlén 2019-02-21 14:38:23 +00:00
parent 899b6b5b53
commit de1cee2015
No known key found for this signature in database
GPG Key ID: C6EC7AAB905F9E6F
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ ALLOWED_HOSTS = ['api.fediverse.space']
CORS_ORIGIN_WHITELIST = [
'fediverse.space',
'www.fediverse.space',
'staging.fediverse.space',
]
CORS_ORIGIN_REGEX_WHITELIST = (r'^(https?:\/\/)?(\w+\.)?(.*)?fediverse-space\.netlify\.com\/?$', )