🐛 (settings.py): Remove conditional check for DEBUG to always allow CORS from all origins for better cross-origin resource sharing
All checks were successful
Creates a docker image for production / Build the docker image (push) Successful in 49s
Build / Code quality (push) Successful in 9m49s

This commit is contained in:
2025-02-05 11:08:40 -03:00
parent 0397465ec3
commit 6795697dea

View File

@@ -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'