Skip to content

Commit c21fe5d

Browse files
author
karmaking
committed
ADD secure SSL header
1 parent 8e8091a commit c21fe5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apimanager/apimanager/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@
284284
CSRF_COOKIE_HTTPONLY = True
285285
CSRF_COOKIE_SECURE = True
286286

287+
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
288+
287289
# Paths on API_HOST to OAuth
288290
OAUTH_TOKEN_PATH = '/oauth/initiate'
289291
OAUTH_AUTHORIZATION_PATH = '/oauth/authorize'

0 commit comments

Comments
 (0)