From 908ca8a2b900a77dfbcbd98c2488be6a25f43ddf Mon Sep 17 00:00:00 2001 From: Daniel Cortes Date: Wed, 3 Jun 2020 15:28:50 -0400 Subject: [PATCH] Allow cors from localhost --- musiclist/settings/prod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musiclist/settings/prod.py b/musiclist/settings/prod.py index cb4f1cf..feb9286 100644 --- a/musiclist/settings/prod.py +++ b/musiclist/settings/prod.py @@ -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