diff --git a/codeforlife/settings/third_party.py b/codeforlife/settings/third_party.py index b81fac7..2c33540 100644 --- a/codeforlife/settings/third_party.py +++ b/codeforlife/settings/third_party.py @@ -5,6 +5,7 @@ import json import os +from .custom import SERVICE_SITE_URL from .django import DEBUG # CORS @@ -12,7 +13,7 @@ CORS_ALLOW_ALL_ORIGINS = DEBUG CORS_ALLOW_CREDENTIALS = True -CORS_ALLOWED_ORIGINS = ["https://www.codeforlife.education"] +CORS_ALLOWED_ORIGINS = [SERVICE_SITE_URL] # REST framework # https://www.django-rest-framework.org/api-guide/settings/#settings