From fce7e1a653031b64158c87f88b851697d04f5e44 Mon Sep 17 00:00:00 2001 From: "Edward Tirado Jr." Date: Sat, 12 Jul 2025 14:01:50 -0500 Subject: [PATCH] updated cors to use env variable --- movienight/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/movienight/settings.py b/movienight/settings.py index eb9878d..dc59df7 100644 --- a/movienight/settings.py +++ b/movienight/settings.py @@ -26,7 +26,7 @@ SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") DEBUG = bool(os.environ.get("DEBUG", default=0)) ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", "127.0.0.1").split(",") -CORS_ALLOWED_ORIGINS = ["http://localhost:3000"] +CORS_ALLOWED_ORIGINS = os.environ.get("DJANGO_ALLOWED_ORIGINS", "http://localhost:3000").split(",") # Application definition