Update settings.py: CORS trusted origins

This commit is contained in:
Marc Zierle 2025-06-25 16:27:01 +02:00 committed by GitHub
parent bcbd11a69e
commit ff41fa9bf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,6 +37,8 @@ ALLOWED_HOSTS = env('ALLOWED_HOSTS').split(',')
CORS_ALLOWED_ORIGINS = [ 'https://' + url for url in env('ALLOWED_HOSTS').split(',')]
CORS_ALLOWED_ORIGINS += [ 'http://' + url for url in env('ALLOWED_HOSTS').split(',')]
CSRF_TRUSTED_ORIGINS = CORS_ALLOWED_ORIGINS
# Application definition