add CSRF_TRUSTED_ORIGINS in settings
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
j3d1 2023-10-21 18:44:43 +02:00
parent d00d637dca
commit b1a221a8e8
2 changed files with 4 additions and 1 deletions

View file

@ -81,6 +81,8 @@ MIDDLEWARE = [
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '').split(',')
CSRF_TRUSTED_ORIGINS = ['https://' + host for host in ALLOWED_HOSTS]
CORS_ALLOW_ALL_ORIGINS = True
ROOT_URLCONF = 'backend.urls'