settting cors
This commit is contained in:
parent
74ea8942cc
commit
3599d6d7fb
@ -150,9 +150,8 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
# "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())
|
||||
CORS_ALLOWED_ORIGINS = config('CORS_ALLOWED_ORIGINS', cast=Csv(), default=[])
|
||||
CORS_ALLOW_CREDENTIALS = True
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_PAGINATION_CLASS':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user