Allow cors from localhost

This commit is contained in:
Daniel Cortes
2020-06-03 15:28:50 -04:00
parent d576f7d415
commit 908ca8a2b9

View File

@@ -5,7 +5,7 @@ SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY')
ALLOWED_HOSTS = ['musiclist-api.danielcortes.xyz']
CORS_ORIGIN_ALLOW_ALL = False
CORS_ORIGIN_WHITELIST = ['musiclist.danielcortes.xyz']
CORS_ORIGIN_WHITELIST = ['musiclist.danielcortes.xyz', 'localhost', '127.0.0.1']
"""Security"""
SECURE_HSTS_SECONDS = 31536000