ui - edit docs and fix CSRF

This commit is contained in:
bunkerity
2021-08-17 17:34:05 +02:00
parent 028fc61b4f
commit aec22d1a81
3 changed files with 15 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ class ReverseProxied(object):
if path_info.startswith(script_name):
environ['PATH_INFO'] = path_info[len(script_name):]
scheme = environ.get('HTTP_X_SCHEME', '')
scheme = environ.get('HTTP_X_FORWARDED_PROTO', '')
if scheme:
environ['wsgi.url_scheme'] = scheme
return self.app(environ, start_response)