diff --git a/backend/core/settings.py b/backend/core/settings.py index 55f750d..25fb059 100644 --- a/backend/core/settings.py +++ b/backend/core/settings.py @@ -130,7 +130,7 @@ USE_TZ = True STATIC_URL = 'static/' -CORS_ALLOWED_ORIGINS = config('ALLOWED_HOSTS', default='').split(',') +CORS_ALLOWED_ORIGINS = config('CSRF_TRUSTED_ORIGINS', default='').split(',') if not CORS_ALLOWED_ORIGINS or CORS_ALLOWED_ORIGINS == ['']: CORS_ALLOWED_ORIGINS = ['*']