Skip to content

Commit

Permalink
X-Forwarded-Host instead of X-Forwarded-Server
Browse files Browse the repository at this point in the history
  • Loading branch information
fixator10 committed Jan 6, 2021
1 parent 0f3018f commit cee3388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reddash/app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def __call__(self, environ, start_response):
scheme = environ.get("HTTP_X_SCHEME", "") or self.scheme
if scheme:
environ["wsgi.url_scheme"] = scheme
server = environ.get("HTTP_X_FORWARDED_SERVER", "") or self.server
server = environ.get("HTTP_X_FORWARDED_HOST", "") or self.server
if server:
environ["HTTP_HOST"] = server
return self.app(environ, start_response)

0 comments on commit cee3388

Please sign in to comment.