Fix request.build_absolute_uri() generating http instead of https by adding SECURE_PROXY_SSL_HEADER
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 25s
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 25s
This commit is contained in:
parent
53fe092d65
commit
fc47bbb1e7
1 changed files with 2 additions and 0 deletions
|
|
@ -27,6 +27,8 @@ SECRET_KEY = 'django-insecure-h3*qqwi%s4(ve^!!27d1sn6gew&4ol0^eh^n*3$aq=p+ht#)6k
|
|||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
CSRF_TRUSTED_ORIGINS = ['https://ec2-16-113-57-127.ap-south-2.compute.amazonaws.com:9002', 'https://*.amazonaws.com']
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue