add CSRF_TRUSTED_ORIGINS in settings
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d00d637dca
commit
b1a221a8e8
2 changed files with 4 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue