fix: régression CORS_ALLOWED_ORIGINS

This commit is contained in:
N3WT DE COMPET
2025-05-30 15:31:02 +02:00
parent 23ab7d04ef
commit a69498dd06
2 changed files with 3 additions and 1 deletions

View File

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

View File

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