From: Bryan Date: Fri, 7 Feb 2014 07:10:29 +0000 (-0500) Subject: additional support for Django CSRF verification. X-Git-Tag: release-20150131~173 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5b506d76b985a2b2f48cdb994dd03b5e492c5293;p=oweals%2Fkarmaworld.git additional support for Django CSRF verification. --- 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 += (