mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-16 04:53:11 -04:00
📝 Add documentation for Behind a Proxy - Proxy Forwarded Headers, using --forwarded-allow-ips="*" (#14028)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
176cd8c9ef
commit
f5b77ff0fc
8
docs_src/behind_a_proxy/tutorial001_01.py
Normal file
8
docs_src/behind_a_proxy/tutorial001_01.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/items/")
|
||||
def read_items():
|
||||
return ["plumbus", "portal gun"]
|
||||
Reference in New Issue
Block a user