forked from orbit-oss/flask
docs: `Flask-Uploads, X-Forwarded-Host`
This commit is contained in:
parent
06d9a5e738
commit
17eee81da0
5 changed files with 9 additions and 9 deletions
|
|
@ -104,8 +104,8 @@ localhost at port 8000, setting appropriate headers:
|
|||
}
|
||||
|
||||
If your httpd is not providing these headers, the most common setup invokes the
|
||||
host being set from `X-Forwarded-Host` and the remote address from
|
||||
`X-Forwarded-For`::
|
||||
host being set from ``X-Forwarded-Host`` and the remote address from
|
||||
``X-Forwarded-For``::
|
||||
|
||||
from werkzeug.contrib.fixers import ProxyFix
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue