1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

* Fixed X-Forwarded-Proto (was X-Forwarded-Protocol before...)

* Added "fix" on HTML5 javascript so it can fix the uds actor client
This commit is contained in:
Adolfo Gómez García 2017-05-26 10:55:47 +02:00
parent c1377255b5
commit a9e65975c5
2 changed files with 3 additions and 3 deletions

View File

@ -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': {

View File

@ -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