This commit is contained in:
Louis Mazin 2026-10-10 20:45:31 +02:00
parent f802854292
commit 845a67ce2c

View File

@ -130,7 +130,7 @@ USE_TZ = True
STATIC_URL = 'static/' STATIC_URL = 'static/'
CORS_ALLOWED_ORIGINS = config('ALLOWED_HOSTS', default='').split(',') CORS_ALLOWED_ORIGINS = config('CSRF_TRUSTED_ORIGINS', default='').split(',')
if not CORS_ALLOWED_ORIGINS or CORS_ALLOWED_ORIGINS == ['']: if not CORS_ALLOWED_ORIGINS or CORS_ALLOWED_ORIGINS == ['']:
CORS_ALLOWED_ORIGINS = ['*'] CORS_ALLOWED_ORIGINS = ['*']