additional support for Django CSRF verification.
authorBryan <btbonval@gmail.com>
Fri, 7 Feb 2014 07:10:29 +0000 (02:10 -0500)
committerBryan <btbonval@gmail.com>
Fri, 7 Feb 2014 07:10:29 +0000 (02:10 -0500)
karmaworld/settings/prod.py

index 4231ce28e2a53bb6662650008568aee4f2eed050..c10baa79f192acf9574a0695981e837339959a67 100644 (file)
@@ -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 += (