diff --git a/freekake_api/freekake_api/settings.py b/freekake_api/freekake_api/settings.py index 2856aee..43d0253 100644 --- a/freekake_api/freekake_api/settings.py +++ b/freekake_api/freekake_api/settings.py @@ -145,11 +145,14 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' -CORS_ALLOWED_ORIGINS = [ - "http://localhost:3000", - "http://localhost:5173", - "http://127.0.0.1:5173", -] +# CORS_ALLOWED_ORIGINS = [ +# "http://localhost:3000", +# "http://localhost:5173", +# "http://127.0.0.1:5173", +# ] +CORS_ALLOWED_ORIGINS = config( + "CORS_ALLOWED_ORIGINS", + default="http://localhost:3000,http://localhost:5173,http://127.0.0.1:5173", cast=Csv()) REST_FRAMEWORK = { 'DEFAULT_PAGINATION_CLASS':