Browse Source

HUE-4450 [desktop] Fix HTTPS termination using X-Forwarded-Proto header

Thomas Poepping 9 năm trước cách đây
mục cha
commit
3884632527
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      desktop/core/src/desktop/settings.py

+ 1 - 1
desktop/core/src/desktop/settings.py

@@ -436,7 +436,7 @@ USE_X_FORWARDED_HOST = desktop.conf.USE_X_FORWARDED_HOST.get()
 
 # Support HTTPS load-balancing
 if desktop.conf.SECURE_PROXY_SSL_HEADER.get():
-  SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https')
+  SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
 
 # Add last activity tracking and idle session timeout
 if 'useradmin' in [app.name for app in appmanager.DESKTOP_APPS]: