diff --git a/nba_stats/settings.py b/nba_stats/settings.py index eddbc05..202a77a 100644 --- a/nba_stats/settings.py +++ b/nba_stats/settings.py @@ -154,9 +154,10 @@ REST_FRAMEWORK = { 'PAGE_SIZE': 100, } -CORS_ALLOWED_ORIGINS = [ - "*", # Replace this with the origin of your frontend app -] +CORS_ALLOWED_ORIGINS = [ 'http://localhost:5173',] + +CORS_ALLOW_ALL_ORIGINS = True + # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/4.2/howto/static-files/