From 6795697dea3384005815cffe1926b44824ba1e8a Mon Sep 17 00:00:00 2001 From: Michel Wilhelm Date: Wed, 5 Feb 2025 11:08:40 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(settings.py):=20Remove=20condit?= =?UTF-8?q?ional=20check=20for=20DEBUG=20to=20always=20allow=20CORS=20from?= =?UTF-8?q?=20all=20origins=20for=20better=20cross-origin=20resource=20sha?= =?UTF-8?q?ring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/settings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/settings.py b/app/settings.py index b9aa16b..19c946a 100644 --- a/app/settings.py +++ b/app/settings.py @@ -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'