mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
fix: régression CORS_ALLOWED_ORIGINS
This commit is contained in:
@ -24,7 +24,8 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||||||
MEDIA_URL = '/data/'
|
MEDIA_URL = '/data/'
|
||||||
MEDIA_ROOT = os.path.join(BASE_DIR, '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'
|
LOGIN_REDIRECT_URL = '/Subscriptions/registerForms'
|
||||||
|
|
||||||
|
|||||||
@ -63,6 +63,7 @@ services:
|
|||||||
- TEST_MODE=True
|
- TEST_MODE=True
|
||||||
- CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:8080,http://127.0.0.1:8080
|
- 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
|
- 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:
|
links:
|
||||||
- "database:database"
|
- "database:database"
|
||||||
- "redis:redis"
|
- "redis:redis"
|
||||||
|
|||||||
Reference in New Issue
Block a user