diff --git a/server/src/server/settings.py.sample b/server/src/server/settings.py.sample index e56d8e524..23c2ff608 100644 --- a/server/src/server/settings.py.sample +++ b/server/src/server/settings.py.sample @@ -17,7 +17,7 @@ DEBUG = True TEMPLATE_DEBUG = DEBUG # USE_X_FORWARDED_HOST = True -SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https') # For testing begind a reverse proxy +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') # For testing begind a reverse proxy DATABASES = { 'default': { diff --git a/server/src/uds/static/js/uds-client.coffee b/server/src/uds/static/js/uds-client.coffee index c758a54d8..bd6d5338c 100644 --- a/server/src/uds/static/js/uds-client.coffee +++ b/server/src/uds/static/js/uds-client.coffee @@ -195,8 +195,8 @@ uds.launch = (el, url, alt) -> alert data.error else # Fix access provided in url in case of https - # if window.location.protocol is 'https:' - # data.url = data.url.replace('uds://', 'udss://') # Ensures that protocol is https also for plugin, fixing if needed UDS provided info + if window.location.protocol is 'https:' + data.url = data.url.replace('uds://', 'udss://') # Ensures that protocol is https also for plugin, fixing if needed UDS provided info if bypassPluginDetection is false uds.doLaunch el, data.url, alt else