cors changes

This commit is contained in:
nprasad2077
2023-05-02 17:15:50 -05:00
parent ce589d48f3
commit bb28fee54a
+4 -3
View File
@@ -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/