fix CORS headers

This commit is contained in:
Tao Bror Bojlén 2019-02-20 20:54:08 +00:00
parent 5079875697
commit dfaf15fb51
No known key found for this signature in database
GPG Key ID: C6EC7AAB905F9E6F
2 changed files with 2 additions and 7 deletions

View File

@ -4,9 +4,4 @@ DEBUG = True
ALLOWED_HOSTS = ['localhost']
CORS_ORIGIN_WHITELIST = [
'localhost:3000',
'localhost:8000',
'127.0.0.1',
]
CORS_ORIGIN_ALLOW_ALL = True

View File

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