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(',')
|
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '').split(',')
|
||||||
|
|
||||||
|
CSRF_TRUSTED_ORIGINS = ['https://' + host for host in ALLOWED_HOSTS]
|
||||||
|
|
||||||
CORS_ALLOW_ALL_ORIGINS = True
|
CORS_ALLOW_ALL_ORIGINS = True
|
||||||
|
|
||||||
ROOT_URLCONF = 'backend.urls'
|
ROOT_URLCONF = 'backend.urls'
|
||||||
|
|
|
@ -5,6 +5,7 @@ charset-normalizer==3.1.0
|
||||||
coreapi==2.3.3
|
coreapi==2.3.3
|
||||||
coreschema==0.0.4
|
coreschema==0.0.4
|
||||||
coverage==7.2.7
|
coverage==7.2.7
|
||||||
|
Cython==3.0.4
|
||||||
Django==4.2.2
|
Django==4.2.2
|
||||||
django-annoying==0.10.6
|
django-annoying==0.10.6
|
||||||
django-cors-headers==4.1.0
|
django-cors-headers==4.1.0
|
||||||
|
@ -27,7 +28,7 @@ pycparser==2.21
|
||||||
PyNaCl==1.5.0
|
PyNaCl==1.5.0
|
||||||
python-dotenv==1.0.0
|
python-dotenv==1.0.0
|
||||||
pytz==2023.3
|
pytz==2023.3
|
||||||
PyYAML==6.0
|
PyYAML==6.0.1
|
||||||
requests==2.31.0
|
requests==2.31.0
|
||||||
ruamel.yaml==0.17.31
|
ruamel.yaml==0.17.31
|
||||||
ruamel.yaml.clib==0.2.7
|
ruamel.yaml.clib==0.2.7
|
||||||
|
|
Loading…
Reference in a new issue