Skip to content
Snippets Groups Projects
Commit 925d802a authored by Ben Adida's avatar Ben Adida
Browse files

fixed proxy header

parent d2cb0563
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,9 @@ SECRET_KEY = get_from_env('SECRET_KEY', 'replaceme')
if (get_from_env('SSL', '0') == '1'):
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTOCOL", "https")
# tuned for Heroku
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
SESSION_COOKIE_HTTPONLY = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment