🐛 (settings.py): Remove conditional check for DEBUG to always allow CORS from all origins for better cross-origin resource sharing
This commit is contained in:
@@ -131,8 +131,7 @@ REST_FRAMEWORK = {
|
||||
'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer',),
|
||||
}
|
||||
|
||||
if DEBUG is True:
|
||||
CORS_ALLOW_ALL_ORIGINS = True
|
||||
CORS_ALLOW_ALL_ORIGINS = True
|
||||
|
||||
|
||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
Reference in New Issue
Block a user