From a69498dd06649b601a16a509c7a80c9f67c7872e Mon Sep 17 00:00:00 2001 From: N3WT DE COMPET Date: Fri, 30 May 2025 15:31:02 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20r=C3=A9gression=20CORS=5FALLOWED=5FORIGI?= =?UTF-8?q?NS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Back-End/N3wtSchool/settings.py | 3 ++- docker-compose.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Back-End/N3wtSchool/settings.py b/Back-End/N3wtSchool/settings.py index 202c926..0fc37e2 100644 --- a/Back-End/N3wtSchool/settings.py +++ b/Back-End/N3wtSchool/settings.py @@ -24,7 +24,8 @@ BASE_DIR = Path(__file__).resolve().parent.parent MEDIA_URL = '/data/' MEDIA_ROOT = os.path.join(BASE_DIR, 'data') -BASE_URL = os.getenv('CORS_ALLOWED_ORIGINS', 'http://localhost:3000') +BASE_URL = os.getenv('BASE_URL', 'http://localhost:3000') + LOGIN_REDIRECT_URL = '/Subscriptions/registerForms' diff --git a/docker-compose.yml b/docker-compose.yml index 42f1e08..62a8fd5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -63,6 +63,7 @@ services: - TEST_MODE=True - CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:8080,http://127.0.0.1:8080 - CSRF_TRUSTED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:8080,http://127.0.0.1:8080 + - BASE_URL=http://localhost:3000 links: - "database:database" - "redis:redis"