mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-04 09:15:35 +00:00
cors changes
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user