mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-12 21:03:46 +00:00
cors changes
This commit is contained in:
1 parent
ce589d48f3
commit
bb28fee54a
1 file changed
+4
-3
@@ -154,9 +154,10 @@ REST_FRAMEWORK = {
|
|||||||
'PAGE_SIZE': 100,
|
'PAGE_SIZE': 100,
|
||||||
}
|
}
|
||||||
|
|
||||||
CORS_ALLOWED_ORIGINS = [
|
CORS_ALLOWED_ORIGINS = [ 'http://localhost:5173',]
|
||||||
"*", # Replace this with the origin of your frontend app
|
|
||||||
]
|
CORS_ALLOW_ALL_ORIGINS = True
|
||||||
|
|
||||||
|
|
||||||
# Static files (CSS, JavaScript, Images)
|
# Static files (CSS, JavaScript, Images)
|
||||||
# https://docs.djangoproject.com/en/4.2/howto/static-files/
|
# https://docs.djangoproject.com/en/4.2/howto/static-files/
|
||||||
|
|||||||
Reference in new issue
Block a user