From 5b506d76b985a2b2f48cdb994dd03b5e492c5293 Mon Sep 17 00:00:00 2001 From: Bryan Date: Fri, 7 Feb 2014 02:10:29 -0500 Subject: [PATCH] additional support for Django CSRF verification. --- karmaworld/settings/prod.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/karmaworld/settings/prod.py b/karmaworld/settings/prod.py index 4231ce2..c10baa7 100644 --- a/karmaworld/settings/prod.py +++ b/karmaworld/settings/prod.py @@ -141,6 +141,10 @@ AWS_HEADERS = { STATIC_URL = S3_URL ########## END STORAGE CONFIGURATION +########## SSL FORWARDING CONFIGURATION +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') +########## END SSL FORWARDING CONFIGURATION + ########## MIDDLEWARE CONFIGURATION # See: https://docs.djangoproject.com/en/dev/ref/settings/#middleware-classes MIDDLEWARE_CLASSES += ( -- 2.25.1