[BUG] Swagger documents cannot be accessed directly through the browser after setting the proxy using root_path #11626
Unanswered
insistence
asked this question in
Questions
Replies: 2 comments
-
Hi, this is the expected result. You can check the documentation here, which explains in detail why it is this way. https://fastapi.tiangolo.com/advanced/behind-a-proxy/#check-the-docs-ui |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ah, I know what you mentioned. The current issue is that using a proxy prefix is also inaccessible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Privileged issue
Issue Content
Operating System
Windows
FastAPI Version
0.109.1
Pydantic Version
2.5.3
Python Version
3.9.18
Uvicorn Version
0.27.0
When I run the above code, I am unable to access the Swagger document through http://127.0.0.1:8000/docs or http://127.0.0.1:8000/proxy/docs in my browser(Not Found /proxy/openapi.json).
Beta Was this translation helpful? Give feedback.
All reactions